I am using ParametricPlot to get an X vs Y plot. I want to shade the area enclosed by the curve falling in the region where Y<0.
For example, how to shade the area enclosed by the Sin curve where Sin[x]<0.
ParametricPlot[{x, Sin[x]}, {x, 0, xm}]
|
I am using ParametricPlot to get an X vs Y plot. I want to shade the area enclosed by the curve falling in the region where Y<0. For example, how to shade the area enclosed by the Sin curve where Sin[x]<0.
|
||||
Update: Few alternatives that use Using
Using
|
||||
|
|
|
Evaluation is faster than Verde's solution plus this little deviation close to the intersection is gone: Make a second plot of y
But it does not work perfectly, e.g. for a filling sin(x)<0.1. |
|||||||||
|
|
You could do:
Edit Using
|
|||||
|
Plot[]with itsFillingoption... – 0x4A4D♦ Aug 28 '12 at 5:25