Re: double tick marks [message #42181] |
Thu, 06 January 2005 07:40 |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <8366b20f.0501060336.4be4ae1e@posting.google.com>,
lbnc@lbnc.de (Lasse Clausen) wrote:
> Hello again.
>
> I have the following code to produce yet another boring plot
>
> A=FINDGEN(100)
> PLOT, A
> AXIS,/YAXIS,YRANGE=[0,350],/YSTYLE
> END
>
> Now the secondary y-axis produced by the AXIS-call has not only minor
> and major tick marks according to the range of [0,350] but also all
> the tick marks from the primary y-axis. Which is quite annoying since
> there are now tick marks all over the place. Is there a way to get rid
> of the tick marks of the primary axis?
The trick is to suppress both y axes on the initial call and then draw
each axis separately.
A=FINDGEN(100)
PLOT, A, YSTYLE = 4
AXIS,YAXIS=0,YRANGE=[0,100],YSTYLE=1
AXIS,YAXIS=1,YRANGE=[0,350],YSTYLE=1
Regards, Ken Bowman
|
|
|
Re: double tick marks [message #42184 is a reply to message #42181] |
Thu, 06 January 2005 04:08  |
Chris Lee
Messages: 101 Registered: August 2003
|
Senior Member |
|
|
In article <8366b20f.0501060336.4be4ae1e@posting.google.com>, "Lasse
Clausen" <lbnc@lbnc.de> wrote:
> Hello again.
> I have the following code to produce yet another boring plot
> A=FINDGEN(100)
> PLOT, A
> AXIS,/YAXIS,YRANGE=[0,350],/YSTYLE
> END
> Now the secondary y-axis produced by the AXIS-call has not only minor
> and major tick marks according to the range of [0,350] but also all the
> tick marks from the primary y-axis. Which is quite annoying since there
> are now tick marks all over the place. Is there a way to get rid of the
> tick marks of the primary axis? Thank you again
> Lasse Clausen
Hi,
YSTYLE is your friend here. YSTYLE=8 (or 9) will remove the right Y axis from
the plot. other numbers do other things (9 forces the left Y axis into
the data range, 8 doesn't).
Have a look at the [X|Y|Z]STYLE in the help file for what the other
numbers do, but it's something like
1: force axis range
2: extend axis range
4: suppress both axis
8: suppress box (i.e right axis)
16: same is /ynozero
Add them together to get combinations (i.e. option 9= option 8 + option
1)
Chris.
|
|
|