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

Home » Public Forums » archive » Re: double tick marks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: double tick marks [message #42181] Thu, 06 January 2005 07:40 Go to previous message
K. Bowman is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: How to set the 50 pins expansion header to 5.0V from default 3.3V
Next Topic: Re: How to add standard gaussian noise to a image pixel

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

Current Time: Sat Oct 11 04:20:31 PDT 2025

Total time taken to generate the page: 0.63896 seconds