cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

seemingly simple question... easiest way to shade the area under a curve?

JoshuaKeena
1-Newbie

seemingly simple question... easiest way to shade the area under a curve?

What is the easiest way to shade the area under a curve?

10 REPLIES 10
MikeArmstrong
5-Regular Member
(To:JoshuaKeena)

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.

http://communities.ptc.com/message/75671#75671

MikeArmstrong
5-Regular Member
(To:JoshuaKeena)

http://communities.ptc.com/servlet/JiveServlet/showImage/38-1286-11146/thumbsup.gif

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.

RichardJ
19-Tanzanite
(To:SteenGroðe)

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

Ninetrees
1-Newbie
(To:rag)

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

MikeArmstrong
5-Regular Member
(To:rag)

That is a nice function.

Mike

wayne
3-Visitor
(To:rag)

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

Top Tags