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

Home » Public Forums » archive » Re: 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 #27280] Wed, 17 October 2001 08:09 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Jacques <jfb37@NOSPAM.cam.ac.uk> writes:

> Hi all
>
> Has anyone else run into a problem with the zlog keyword in contour? Or
> can someone tell me where I am going wrong? It seems that if the keyword
> is set, then any further contour plots are plotted using a log scale
> irrespective of what value is sent to zlog. A way around it is to set
> !z.type to 0 after each call to contour, but that shouldn't be the way
> to do it.
>
> There is some simple code below to illustrate the point.
... removed code ...

I am not sure this is a bug. It is similar to the behavior of other
/XLOG, /YLOG keywords, in the sense that once they are set, then any
overplots are also performed in logarithmic coordinates. Since XLOG
and YLOG are "sticky," I could see why ZLOG might be too. I will
grant that the ZLOG behavior is a bit surprising at first approach.

The simple solution is to compute the logarithm yourself. I.e.,

contour, ALOG10(dist(50))

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Floating Underflow/Overflow
Next Topic: Is ANA dead?

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

Current Time: Thu Oct 09 20:39:41 PDT 2025

Total time taken to generate the page: 0.72261 seconds