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

Home » Public Forums » archive » Log axis tickvalue format
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: Log axis tickvalue format [message #21810 is a reply to message #21727] Wed, 20 September 2000 00:00 Go to previous messageGo to previous message
Markus Reichstein is currently offline  Markus Reichstein
Messages: 2
Registered: August 2000
Junior Member
Surendar,
I'm not aware of a simple and elegant solution, i.e. without doing
everything by yourself. However, the following short procedure might
serve as a starting point, albeit far from being mature. . I needed it
once, and it was OK for my purposes.

Every order of magnitude is labeled, which causes space problems if the
data range is more than 10 orders of magnitude or so. Then the number of
'tickVals' has to be reduced

Cheers,
Markus


PRO logPlot, x,y


;**** Normal wave ticks
plot_oo, x,y, psym=-2
hak
xc=!x.crange & yc=!y.crange

;**** self-made ticks
ytickVals=indgen(yc(1)-yc(0)+1)+yc(0)
yticknames='10!U'+string(ytickVals, form='(I2)')+'!N'

xtickVals=indgen(xc(1)-xc(0)+1)+xc(0)
xticknames='10!U'+string(xtickVals, form='(I2)')+'!N'

plot_oo, x,y, psym=-2, xrange=10.^xc, yrange=10.^yc,$
ytickname=yticknames, ytickv=10.^ytickVals,
yticks=N_ELEMENTS(ytickVals)-1,$
xtickname=xticknames, xtickv=10.^xtickVals,
xticks=N_ELEMENTS(xtickVals)-1


END


--
>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Markus Reichstein
Department of Plant Ecology
University of Bayreuth
D-95440 Bayreuth
Germany

Ph.: +49 921 55 2061
FAX: +49 921 55 2564
e-mail: markus.reichstein@uni-bayreuth.de

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Beginner STILL going INSANE :)
Next Topic: Re: Problem using sav files.

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

Current Time: Sat Oct 11 08:55:11 PDT 2025

Total time taken to generate the page: 0.31340 seconds