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 #36153 is a reply to message #36072] Thu, 21 August 2003 01:37 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <bhtlgr$ao62$1@zam602.zam.kfa-juelich.de>, "Reimar Bauer"
<R.Bauer@fz-juelich.de> wrote:


> R.G. Stockwell wrote:
>
>> 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
> Good idea
> a workaround is to use ytickv and yticks. Then they are major ticks.
> pro test_contour
> erase
> loadct,15
> x=findgen(100)
> y=findgen(100)/99.*70+20
> z=findgen(100,100)
> CONTOUR,z,x,y,/ylog,ystyle=1,/fill,ytickv=[20,30,40,50],ytic ks=3 end
> Reimar
>
>> cause a bug in the axis labelling
>> IDL 6.0, win2000
>> -bob
>

The bug is caused by IDL plotting in log coordinates for the axis, 1.3
is alog10(20). Try giving the contour a range between 11 and 99, the
number you get on the axis is alog10(min_range)

pro contour_test
x=findgen(100)
y=findgen(100)/99.*70+20
z=findgen(100,100)
number=14
CONTOUR,z,x,y,/ylog,ystyle=1,/fill,yrange=[number,max(y)]
;the axis will show 1.14 for number=14
end

For some reason, this only happens with when using /fill (I don't see a
problem using /cell_fill) and when the range is less than one unit in
log_10 space (1->10,10->100, 100->1000 etc.). Setting 'number=9' above
fixes the problem, but doesn't lood good.

--
Chris.
[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: Sat Oct 11 06:23:52 PDT 2025

Total time taken to generate the page: 1.68090 seconds