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

Home » Public Forums » archive » Re: Multiple xaxis labels
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: Multiple xaxis labels [message #58404 is a reply to message #58403] Mon, 28 January 2008 09:59 Go to previous messageGo to previous message
wgallery is currently offline  wgallery
Messages: 32
Registered: December 1998
Member
Brian,

Better yet, see the system variable !xtickformat:

"Set this keyword to a string or a vector of strings. The string can
be a format string or a string containing the name of a function that
returns a string to be used to format the axis tick mark labels. If a
vector is provided, each string corresponds to a level of the axis.
" (see idl help on !xtickformat for more information.)

You need to provide a function to format the labels for each level,
then set:

!xtickformat=['label_funct_1', 'label_funct_2, ...]

This should do what you want.

Cheers,

Bill



On Jan 28, 12:15 pm, Bill Gallery <wgall...@aer.com> wrote:
> Brian,
>
> Check out the 'label_date' function in idl help. That function allows
> you to put multiple line date/time labels on plots (see the examples
> at the end of the help page.) You may be able to tweak it to do what
> you want.
>
> Cheers
>
> Bill Gallery
>
> On Jan 28, 12:04 pm, pgri...@gmail.com wrote:
>
>> You may try adding !C to the ticknames:
>
>> plot,[1,2,1],xtickname=['','','1!C1']
>
>> Cheers,
>> Paolo
>
>> Brian Larsen wrote:
>>> IDLers,
>
>>> OK, so I have not found the good solution for making multiple labels
>>> on an axis. The example I am trying to emulate is:
>>> http://sprg.ssl.berkeley.edu/fast/sumplotProg/sumplotsLink/o rbit_link...
>
>>> It seems that I cant figure out how to:
>>> - put them in the right place with xyouts
>>> - line them up nicely
>>> - make sure they are in the right place
>
>>> Has anyone done this with good success?
>
>>> I know how with separate axes like:http://www.dfanning.com/graphics_tips/wavenumber.html
>>> but on the same axis has got me more boggled.
>
>>> Cheers,
>
>>> Brian
>
>>> ------------------------------------------------------------ --------------
>>> Brian Larsen
>>> Boston University
>>> Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Europe/Africa province boundaries
Next Topic: working dir in IDL 7

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

Current Time: Sun Oct 12 07:20:57 PDT 2025

Total time taken to generate the page: 0.64184 seconds