Re: Teaching an Elephant to Dance [message #77578 is a reply to message #77574] |
Mon, 12 September 2011 12:59   |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
On 12 sep, 20:43, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Run this program with data defined like this, and you
>> will see what I mean:
>
>> data = 0.125 > Randomu(-3L,9,9) < 0.875
>
> As I was taking a shower I thought, "I don't know,
> maybe I'm blowin' smoke...". Can someone who CAN
> use the TICKNAME keyword send me a picture of what
> the plot looks like with the data defined like this
> in Mark's latest program?
>
> Please send it to "david" at the usual place.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Well, the clever solution given by Mark Piper inspires me two
comments:
1) do not necessarily use /OVERPLOT for overplotting: indeed, here in
NG, the two contour plots will show up correctly by only drawing them
in the current (/CURRENT) window at the same position.
2) the COLORBAR labelling is just a trick since ticknames 0, 0.25, 0.5
etc... are forced at the computed positions 0.0134, 0.2563, etc... A
colorbar routine based on the input of an arbitrary color scale and
without any reference to an underlying image, would be simpler!
alain.
|
|
|