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.
Best Answer
First select both equations in the sidebar, and then Equation » Integration… in the menu.
In the dialog, it has preselected Area Between Curves. Confirm it.
You can change the color in the inspector window.
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.