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

Home » Public Forums » archive » log plot
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
log plot [message #68337] Tue, 20 October 2009 06:49
Thibault Garel is currently offline  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 Go to previous message
Jean H. is currently offline  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 Go to previous message
Norbert Hahn is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: linear regression F-test
Next Topic: Re: how2 read excel (XLS) file to IDL

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

Current Time: Wed Oct 08 15:17:00 PDT 2025

Total time taken to generate the page: 0.00543 seconds