Shading a band of ranges in pvwave [message #4326] |
Mon, 22 May 1995 00:00  |
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  |
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
|
|
|