Re: IDL 8, log plots and titles [message #73115 is a reply to message #73114] |
Tue, 26 October 2010 13:16   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
b_gom 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:
[test code elided]
My only comment: crikey!
I just ran the same plots as those of the OP but using OG (iplot) rather than NG and I get the same behaviour. Anyone
out there with a v7 install that can run the code using iplot? E.g.
x=findgen(100)/100*3*!pi
y=sin(x)
iplot,x,y,yrange=[0.1,1],title='Linear Y Axis Works',window_title='Linear Y Axis Works'
iplot,x,y,/ylog,yrange=[0.1,1],title='Title Error Log Y Axis',window_title='Title Error Log Y Axis'
iplot,x,(y+2)*10,/ylog,yrange=[1,100],title='Title Error Log Y Axis',window_title='Title Error Log Y Axis'
iplot,x,(y+2)*10,/ylog,title='Title Error Log Y Axis',window_title='Title Error Log Y Axis'
Does one see the same behaviour with v7 OG? Because, if they do that would mean OG has been buggy for a while. On the
plus side, if v7 OG *does not* exhibit the same behaviour, it should be easy for ITTVIS to fix this in v8 since it's a
recent introduction. (Right? :o)
To be fair to the ITTVIS folks, it's got to be difficult to test graphics systems. I mean, how do you test (unit or
regression) the sort of problems the OP is encountering?
But, still.....
cheers,
paulv
|
|
|