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 #36152 is a reply to message #4416] Thu, 21 August 2003 06:03 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Chris Lee wrote:

> 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.

Dear Chris,

someone from CREASO informed me that this bug does not occure with IDL6.0
windows.

with idl6.0beta linux I have this bug.

I will get 6.0 soon. But if you or someone else could confirm this bug in
the 6.0 version then you should do a request to RSI or CREASO.


Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[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 19:08:51 PDT 2025

Total time taken to generate the page: 7.20005 seconds