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

Home » Public Forums » archive » Re: What is going on with the minor ticks on log plots?????
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: What is going on with the minor ticks on log plots????? [message #12579] Wed, 26 August 1998 00:00 Go to previous message
Joe[2] is currently offline  Joe[2]
Messages: 11
Registered: May 1998
Junior Member
Well, here is the solution. Run the following code.

Pro TEST
; No, this is not a protest ;)

!p.multi = [0,3,2]
!p.ticklen = .07

; This does not work
!x.style = 1
plot,/xlog,[1],[10],xrange=[1.e10,1.e13],xticks=3
plot,/xlog,[1.e9],[10],xrange=[1.e7,1.e10],xticks=3
plot,/xlog,[1.e-3],[10],xrange=[1.e-5,1.e-1],xticks=4

; This works
!x.style = 0
plot,/xlog,[1],[10],xrange=[1.e10,1.e13],xticks=3
plot,/xlog,[1.e9],[10],xrange=[1.e7,1.e10],xticks=3
plot,/xlog,[1.e-3],[10],xrange=[1.e-5,1.e-1],xticks=4

end


It appears that the anomalous behavior is related solely
to the value of !x.style. Not knowing how the IDL source
code is written I can onnly guess as to the cause of the
problem. Either a different chunk of code is called when
xstyle is 1 rather than 0 that handles powers of ten beyond
0 to 10 differently or powers of ten outside the range
from 0 to 10 are not sufficiently "exact" so as to be
recognized as an integer power of ten when xstyle=1.

I bet on the former.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image Object ROI selection
Next Topic: Re: Object method name problem

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

Current Time: Fri Oct 10 08:14:48 PDT 2025

Total time taken to generate the page: 0.63693 seconds