Re: Filled area curve [message #85855 is a reply to message #85670] |
Fri, 13 September 2013 21:55  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Monday, August 26, 2013 8:15:40 AM UTC-4, Rob Dimeo wrote:
> Hi,
>
>
>
> A quick search on this NG came up fruitless but I'm hoping that someone has done this type of plot before.
>
>
>
> David has a very nice example of a curve with part of the area under it filled with a solid color: http://www.idlcoyote.com/gallery/filled_area_plot.png
>
>
>
> I would like to extend this so that the area is actually a sequence of colors, the value of which is tied to the independent variable. I intend to plot the magnitude of a complex function, |z(x)|, (as a function of some independent variable, x) as the "curve" and encode the phase angle (again, as a function of x) as a filled (generally multiple-) color area below the curve.
>
>
>
> So the main difference from the plot shown in the link above would be that the solid color that fills the area under the curve would instead be a gradient of colors that transition from one x-value to another, depending on the value of x and the color table used.
I realize that I'm a couple weeks late to the game.
For future reference, consider PLOTCOLORFILL,
http://www.physics.wisc.edu/~craigm/idl/graphics.html#PLOTCO LORFILL
which appears to do exactly what you want!
Craig
|
|
|