pvwave plots [message #4902] |
Mon, 28 August 1995 00:00 |
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  |
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
|
|
|