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

Home » Public Forums » archive » pvwave plots
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
pvwave plots [message #4902] Mon, 28 August 1995 00:00
Pearson J E is currently offline  Pearson J E
Messages: 7
Registered: August 1995
Junior Member
I have a graph with two plots on it and I am trying to get the right hand
y-axis
to represent the second line on the graph, as this one uses different units to
the first.Is it something to do with the axis command?

Please HELP!!

Thanks

--
|Jonathan Pearson - Postgrad| Why Waste Time Learning? |
| Computer Science Dept. | When Ignorance Is Instantaneous! |
|University Of Essex,England| |
| Mail--jepear@essex.ac.uk | - Hobbes, from Calvin and Hobbes fame |
Re: pvwave plots [message #4995 is a reply to message #4902] Mon, 28 August 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Pearson J E <jepear@essex.ac.uk> writes:

> I have a graph with two plots on it and I am trying to get the right hand
> y-axis
> to represent the second line on the graph, as this one uses different units to
> the first.Is it something to do with the axis command?

Yes. I think what you want to do is something like the following:

1. Plot the first graph with the keyword YSTYLE=4 to suppress the left and
right axes.

2. Use the command AXIS,YAXIS=0 to show the left axis.

3. Plot the second graph with the keywords XSTYLE=4,YSTYLE=4,/NOERASE. This
presumes that the X points in both cases are the same.

4. Use the command AXIS,YAXIS=1 to show the right axis.

For example, suppose that I have two quantities Y1 and Y2 which are both
measured at positions X. I could use the following commands to display them:

PLOT,X,Y1,YSTYLE=4
AXIS,YAXIS=0
PLOT,X,Y2,XSTYLE=4,YSTYLE=4,/NOERASE
AXIS,YAXIS=1

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: 2D non-linear, least-squares fitting routine needed
Next Topic: IDL hyperhelp -> html

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

Current Time: Thu Oct 09 20:48:23 PDT 2025

Total time taken to generate the page: 0.12553 seconds