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 
Switch to threaded view of this topic Create a new topic Submit Reply
Shading a band of ranges in pvwave [message #4326] Mon, 22 May 1995 00:00 Go to next message
John Kennedy is currently offline  John Kennedy
Messages: 1
Registered: May 1995
Junior Member
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,

Many thanks

John


----------------------------------------------------
John Kennedy, Advanced Computer Architecture Group,
Dept. of Computer Science, University of York, York,
YO1 5DD, England. Tel: 01904 433067. Fax: 432767.
email: johnk@cs.york.ac.uk
www: http://dcpu1.cs.york.ac.uk:6666/~johnk/johnk.html
----------------------------------------------------
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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 19:18:46 PDT 2025

Total time taken to generate the page: 0.00511 seconds