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

Home » Public Forums » archive » Re: axis in scientific notation
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: axis in scientific notation [message #20389] Tue, 20 June 2000 00:00
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Andrew wrote:
>
> Hi. I would have thought this is a FAQ, but
> I could not find anything in teh Deja archives.
>
> I have a graph in IDL direct graphics and
> IDL is writing the Y-axis in "scientific" or
> exponential notation -- i.e. 3.0x10^4 etc.
>
> Is there a way to force normal notation?
>
> I know I could draw my own ticks with custom
> labels or whatever --- I'm wondering if there
> is an easier way, tho.

Use the X/Y/Z TICKFORMAT keyword, e.g.

IDL> plot, sin(findgen(200) * 0.1), ytickformat='(e9.2)'

e9.2 means 9 characters (including sign and exponent) with 2 characters
after the decimal point.

Cheers,
Liam.
[Message index]
 
Read Message
Previous Topic: multi conditional for loops
Next Topic: Re: Cool and Bizzare error in IDL 5.2.1

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

Current Time: Fri Oct 10 10:44:13 PDT 2025

Total time taken to generate the page: 1.11563 seconds