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

Home » Public Forums » archive » Re: labels for multiple x axis
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: labels for multiple x axis [message #42187 is a reply to message #42179] Wed, 05 January 2005 13:15 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Lasse Clausen wrote:
> Hi.
> I am using the following code to produce a nice, extensively boring
> plot.
>
> PLOT,FINDGEN(100),XTICKS=2,XTICKUNITS=['NUMERIC','NUMERIC'], $
> POSITION=[.05,.2,.95,.8]
>
> The question is: How do I get IDL to use the XTICKS keyword for the
> second axis as well? Because it uses 3 ticks for the first, but 6
> ticks for the second axis.


Ditch the 2-element array for XTICKUNITS, thus:

PLOT,FINDGEN(100),XTICKS=2,XTICKUNITS='NUMERIC',$
POSITION=[.05,.2,.95,.8]

Array values for XTICKUNITS are only relevant for multi-level axes,
which are something else entirely. (If you run your command without the
POSITiON keyword, you will see a second x axis at the bottom of the plot.).


--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Previous Topic: Re: CW_FILESEL size
Next Topic: plotting rotating vectors in a sequence

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

Current Time: Sun Oct 12 09:46:33 PDT 2025

Total time taken to generate the page: 0.00187 seconds