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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

JoshuaKeena
1-Visitor

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

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

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.

rag
12-Amethyst
12-Amethyst
(To:JoshuaKeena)

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
12-Amethyst
(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~

rag
12-Amethyst
12-Amethyst
(To:JoshuaKeena)

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
12-Amethyst
(To:rag)

That is a nice function.

Mike

wayne
12-Amethyst
(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

Announcements

Top Tags