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

Home » Public Forums » archive » Re: Using [XYZ]TICKFORMAT for dynamic formatting
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: Using [XYZ]TICKFORMAT for dynamic formatting [message #66552 is a reply to message #66486] Thu, 21 May 2009 14:40 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Gell wrote:
> I usually do something like the following when I have to pass data to
> a callback routine.
> Change the lowticks routine as follows:
>
>
> FUNCTION lowticks, axis, index, value, format=format
> common qqlowticks, sFormat
> if n_elements(sFormat) eq 0 then sFormat='("!C",f7.3)' ;;
> initialize state memory
> if keyword_set(format) ne 0 then begin
> sFormat=format
> return, 0
> endif
>
> RETURN, STRING( value, FORMAT = sFormat
> END
>
> Then, prior to using lowticks as the value of the xtickformat keyword
> argument, you set the
> format string,
>
> nDummy=lowticks(format='(F7.3)'
>
> plot, ..., xtickformat=lowticks
>
> Hope this helps.

Thanks David. I try to not use common blocks where possible, but I will file it away in
case I can't get the other suggestions to work.

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Transporting code from one mac to another: Problem connection to X windows server...
Next Topic: New Business Venture

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

Current Time: Sat Oct 11 19:51:49 PDT 2025

Total time taken to generate the page: 0.16209 seconds