Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How do I shade the region (or area) between two curves in Grapher?

I'm looking for a way to do this in a 2D graph. The only example which comes close to this is the "Evaluation and Integration" example, but I can't figure it out.

For example, I would like to shade the region bound by these two curves:

y = x^2 - 2
y = 0 

I'm assuming it's possible based on this comment.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

First select both equations in the sidebar, and then Equation » Integration… in the menu.

enter image description here

In the dialog, it has preselected Area Between Curves. Confirm it.

You can change the color in the inspector window.

enter image description here


Since your second equation is y=0, you could just select the first one, and integrate it, selecting Area in the dialog. The result should look the same.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.