Re: bug in contour? [message #27280] |
Wed, 17 October 2001 08:09  |
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
------------------------------------------------------------ --------------
|
|
|