|
|
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  |
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.")
|
|
|