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

Home » Public Forums » archive » bug in CONTOUR
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: bug in contour [message #36078 is a reply to message #4416] Tue, 19 August 2003 07:49 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Reimar Bauer" <R.Bauer@fz-juelich.de> wrote in message
news:bht7hc$akln$1@zam602.zam.kfa-juelich.de...
> Dear all,
>
>
> we found a special bug in contour.
>
> We can't explain where the 1.3 at the yaxis comes from.
>
> This happens only by /fill not by fill=0 and not by /cell_fill.
>
> The value is alog10 of yrange[0]. If you change the yrange starting at 40
> then it is 1.6
>
> I have informed CREASO too.
>
> regards
>
> Reimar

Yep, it quacks like a bug.
It seems that the ytickname is being ignored in that situation.

Also, I do see the same type of problem with the /cell keyword
(the following prints "19" on the y-axis, and not where the y-axis should
have a value of 19).

pro test_contour
erase
x=findgen(100)
y=findgen(100)/99.*70+20
z=randomn(seed,100,100) ;random looks pretty imho
CONTOUR,z,x,y,ylog=1,/cell
end


also interesting,
> CONTOUR,z,x,y,ylog=1,yr=[16,90],/cell,ytickname=string(findg en(10))
prints a "16"
> CONTOUR,z,x,y,ylog=1,yr=[17,90],/cell,ytickname=string(findg en(10))
prints "17"
> CONTOUR,z,x,y,ylog=1,yr=[18,90],/cell,ytickname=string(findg en(10))
printms "18"
> CONTOUR,z,x,y,ylog=1,yr=[19,90],/cell,ytickname=string(findg en(10))
also prints "18"
> CONTOUR,z,x,y,ylog=1,yr=[20,90],/cell,ytickname=string(findg en(10))
prints "19"
> CONTOUR,z,x,y,ylog=1,yr=[22,90],/cell,ytickname=string(findg en(10))
prints,"20"
> CONTOUR,z,x,y,ylog=1,yr=[10,90],/cell,ytickname=string(findg en(10))
behaves as expected
> CONTOUR,z,x,y,ylog=1,yr=[40,90],/cell,ytickname=string(findg en(10))
prints,"2"
> CONTOUR,z,x,y,ylog=1,yr=[40,100],/cell,ytickname=string(find gen(10))
behaves properly

also, to switch x and y, the bug appears on the x axis
> CONTOUR,z,y,x,xlog=1,xr=[20,90],/cell,ytickname=string(findg en(10))
prints,"19" on the x axis.

So, the combo of
1) xylog=1,
2) /fill or /cell,
3) particular range of values (i.e. it almost looks like there are no major
ticks being plotted

cause a bug in the axis labelling

IDL 6.0, win2000

-bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL function randperm?
Next Topic: colour printing of code

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

Current Time: Fri Oct 10 09:13:27 PDT 2025

Total time taken to generate the page: 0.47398 seconds