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

Home » Public Forums » archive » IDL 8, log plots and titles
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: IDL 8, log plots and titles [message #73193 is a reply to message #73119] Wed, 27 October 2010 09:50 Go to previous messageGo to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Oct 26, 1:03 pm, b_gom <b_...@hotmail.com> wrote:
> Am I missing something, or is IDL 8 fumbling logarithmic y axes and
> plot titles when using the new plot function?
>
> When plotting log plots, the plot title seems to vanish, and also IDL
> does not seem to be able to calculate the y range properly. In the
> sample code below, compare the direct graphics output (which handles
> the range and title correctly automatically) to the new plot function
> output which doesn't seem to be able to figure out what I want:
>
> ----------------------------------------
> x=findgen(100)/100*3*!pi
> y=sin(x)
>
> ;This is what I expect; yaxis handles infinite log range and title
> appears correctly
> plot,x,y,/ylog,title='Direct Graphics Yrange and Title'
>
> ;Now for the plot function output:
> ;title works for linear y axes
> p1=plot(x,y,yrange=[0.1,1],title='Linear Y Axis
> Works',window_title='Linear Y Axis Works')
> ;title gone for log plots
> p2=plot(x,y,/ylog,yrange=[0.1,1],title='Title Error Log Y
> Axis',window_title='Title Error Log Y Axis')
> ;if you set the yrange, the title appears, but in the wrong place
> p3=plot(x,(y+2)*10,/ylog,yrange=[1,100],title='Title Error Log Y
> Axis',window_title='Title Error Log Y Axis')
> ;if you don't set the yrange, the title is gone
> p4=plot(x,(y+2)*10,/ylog,title='Title Error Log Y
> Axis',window_title='Title Error Log Y Axis')
> ----------------------------------------
>
> Any ideas?

This bug (along with 98 others) is fixed in IDL 8.0.1, which will be
available on our website very soon.

mp
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Another Way IDL 8.0 is Fragile
Next Topic: step size in constrained_min?

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

Current Time: Fri Oct 10 18:17:53 PDT 2025

Total time taken to generate the page: 0.72092 seconds