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

Home » Public Forums » archive » Re: Common x- and y-axes 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: Common x- and y-axes labels..... [message #65391 is a reply to message #65383] Mon, 02 March 2009 07:33 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Mar 2, 8:58 am, David Fanning <n...@dfanning.com> wrote:
> David Gell writes:
>> You can use the graphics keywords [xy]tickname to suppress the tick
>> labels on all but the desired plot.
>
> I usually suppress tick labels like this:
>
>    IDL> plot, findgen(11), xtickformat='(A1)'
>
> I don't know WHY it works, but it does.
>
> I haven't been able to figure out what the user wanted
> to do either, so I haven't commented, but I did have
> something totally different from this in mind. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

It works because the string representation of any number in IDL is
a) right-justified
b) always has leading spaces

So if you take the first character of that, it's always a space... and
is therefore exactly equivalent to DG's replicate(' ',N).

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Get time and date from a server using a socket
Next Topic: the problem of using CALL_EXTERNAL()

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

Current Time: Sat Oct 11 01:52:29 PDT 2025

Total time taken to generate the page: 0.32105 seconds