comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Shading a band of ranges in pvwave
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Shading a band of ranges in pvwave [message #4352 is a reply to message #4326] Sun, 28 May 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
John Kennedy <johnk> writes:

> Hi,

> Before I spend three or four days trying to work out the following in pvwave, I
> thought I would ask if anybody out there has already done this and could they
> tell me how to please.

> I would like to produce a 2-D graph where one if the plots can vary between
> certain y-ranges and I would like to show this by shading the relevant areas.
> An example of the data is as follows:

> X-Range Low Y Value High Y Value
> 64 7 10
> 128 8 12
> 192 9 15

> and so on....

> If you know of a method to do this could you possibly email me the answer (as
> well as posting it) as I am in a bit of a hurry to get this done,

The following should work. Suppose that you have the 1-D arrays X,
YLOW, and YHIGH, which all have the same number of elements. Then, you should
be able to use the commands

XX = [X, REVERSE(X)]
YY = [YLOW, REVERSE(YHIGH)]
PLOT, XX, YY, /NODATA
POLYFILL, XX, YY

Good luck,

Bill Thompson
[Message index]
 
Read Message
Read Message
Previous Topic: Re: floats from strings... duh!
Next Topic: Seeking Savitsky-Golay (savgol) filter.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 06:52:11 PST 2025

Total time taken to generate the page: 0.47548 seconds