log plot [message #68337] |
Tue, 20 October 2009 06:49 |
Thibault Garel
Messages: 55 Registered: October 2009
|
Member |
|
|
Hi,
i am making a plot as follows:
plot,x,y,psym=10,yr=[1.d-8,1.],/ylog
and the graduation does not appear on the y axis whereas it does when
i change the y range:
plot,x,y,psym=10,yr=[1.d-6,1.],/ylog
So, does anybody know how i can fix this? and for the first case, how
sould i read the y axis, thats to say even if the graduation does not
appear, is it still a log scaling?
Thanks a lot!
|
|
|
Re: log plot [message #68364 is a reply to message #68337] |
Mon, 19 October 2009 06:41  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
Thibault Garel wrote:
> Hi,
>
> i am making a plot as follows:
>
> plot,x,y,psym=10,yr=[1.d-8,1.],/ylog
>
> and the graduation does not appear on the y axis whereas it does when
> i change the y range:
>
> plot,x,y,psym=10,yr=[1.d-6,1.],/ylog
>
> So, does anybody know how i can fix this? and for the first case, how
> sould i read the y axis, thats to say even if the graduation does not
> appear, is it still a log scaling?
>
> Thanks a lot!
hi, try
plot,x,y,psym=10,yr=[1.d-8,1.],/ylog, Ystyle = 1
Jean
|
|
|
Re: log plot [message #68367 is a reply to message #68337] |
Mon, 19 October 2009 05:00  |
Norbert Hahn
Messages: 46 Registered: May 2003
|
Member |
|
|
Thibault Garel <thibaultgarel@gmail.com> wrote:
> Hi,
>
> i am making a plot as follows:
>
> plot,x,y,psym=10,yr=[1.d-8,1.],/ylog
>
> and the graduation does not appear on the y axis whereas it does when
> i change the y range:
Same here.
>
> plot,x,y,psym=10,yr=[1.d-6,1.],/ylog
The distance between the tick mark for 9 and 10 is really short for
6 decates and that could be the reason that the minor tick marks are
suppressed when you plot over 8 decates.
Please try
plot,x,y,psym=10,yr=[1.d-8,1.],/ylog,ytickinterval=0.5
or other values for ytickinterval and see if it works for you.
> So, does anybody know how i can fix this? and for the first case, how
> sould i read the y axis, thats to say even if the graduation does not
> appear, is it still a log scaling?
The scaling is log when you request /ylog. It can easily be verified
by plotting some test numbers, i.e.
plot,[1e-7,3e-5,2e-6,0.5],psym=10,yr=[1.d-8,1.],/ylog,yticki nterval=0.5
HTH
Norbert
|
|
|