Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
What is the easiest way to shade the area under a curve?
Never edit and disregard a question. Even though you might have found the answer other collabs might still not know how to shade the area under a graph.
You should have posted the link to the thread where you found the answer. This thread is now worthless.
Mike
This is the helpful link I found to my rudimentary question.
Not sure why it didn't appear in the initial query.
Mike
There is several different techniques to solve this problem. I believe they were all in the old collaboratorium - wonder where they have gone now. Some are in Byrge Birkelands book while others only were to be found in the collaboratorium.
The Collaboratory is still there (for now), you just can't post in any forum except "Suspected Bugs" and "Feature Suggestions". All the threads were also ported here, but any older that 5 years no longer have any attached files (so they are all but worthless) and none of the hyperlinks were converted, so they all still point to theads in the old forums.
Joshua Keena schrieb:
What is the easiest way to shade the area under a curve?
I found a small and useful Mathcad program to shade (hatch) the area between two curves in a German book (page 347) by Peter Grobstich and Gerhard Strey - "Mathematik für Bauingenieure: Grundlagen, Verfahren und Anwendungen mit Mathcad".
Google-books is generous enough to display that page (at least some times):
http://books.google.at/books?id=yyGdpWzo3v0C&pg=PA347
Any other algorithms would be welcome.
Regards
I recently "shaded" the area under a curve by plotting the curve, then plotting the function again, but selecting stem plot type and blank symbol. Unfortunately, I have not explored it in depth, and it seems best fitted for simple curves...see attached.
~R~
Joshua Keena schrieb:
What is the easiest way to shade the area under a curve?
I remembered that there was a file dealing with that subject on the Mathsoft site in the good old days. I searched a little bit and found the link. There is a redirection to PTC now, offering the download of that file (user.mcd). Unfortunately, as with so many, many things, PTC has broken that too.
http://www.ptc.com/appserver/wcms/standards/textoimgothumb.jsp?&im_dbkey=61810&icg_dbkey=888
Using the Wayback Machine you should sill be able to download the file with the routine by Carlos Reyes.
http://web.archive.org/web/*/http://www.mathcad.com/support/item/examples/02oct/user.mcd
I have attched it for your convenience.
Regards
That is a nice function.
Mike
Winford,
I agree with Mike, nice function.
Possible imporvement would be to use uniform spacing of points, which would result in much smaller matrices,
for example, DleY in the funciton is determined by dividing the height by M, whether or not the hieght is 100 units or .01 units.
The density could be controlled better by specifying DelX and DelY instead of N and M.
Thanks for posting
Wayne