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

Home » Public Forums » archive » Re: How to print tickname in exponential format as '10^2'
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to print tickname in exponential format as '10^2' [message #57724] Sun, 23 December 2007 05:43
duxiyu@gmail.com is currently offline  duxiyu@gmail.com
Messages: 88
Registered: March 2007
Member
Thanks for the both.
It is very helpful.

Best regards,
Du
Re: How to print tickname in exponential format as '10^2' [message #57732 is a reply to message #57724] Fri, 21 December 2007 06:38 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Also don't forget logticks_exp() from this post:

http://groups.google.com/group/comp.lang.idl-pvwave/browse_f rm/thread/fb4d6ebe49a3b073/49f61fc123ab9c1b?lnk=gst&q=lo gticks_exp

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
Re: How to print tickname in exponential format as '10^2' [message #57740 is a reply to message #57732] Thu, 20 December 2007 18:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
duxiyu@gmail.com writes:

> Using format code '(e)', I can print 100 as '1.00e+002'.
> But I want to print it in exponential format as '10^2' and 2 is
> superscript for 10.
> I want to print it like this in a log-log plot as the tickname.
> For example, when I set yrange=[0.001,10000], the yticknames are shown
> in exponential format I described above.
> When I set yrange=[0.001,100], the yticknames are shown as 0.001, 0.1
> and so on.
> I want to take the yticknames in the second situation shown as the
> same format as it in the first situation.
> But I don't find the appropriate format code for this purpose.

You are going to have to roll your own:

http://www.dfanning.com/tips/exponents.html

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Markov processes?
Next Topic: jpegs and tiffs

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

Current Time: Sun Oct 12 09:16:38 PDT 2025

Total time taken to generate the page: 1.27951 seconds