| Re: What color should it be? [message #79989 is a reply to message #79988] |
Thu, 19 April 2012 12:47  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Xin Tao writes:
> I'm using IDL 8.1 from a Mac terminal. One strange thing that I don't understand is the color of the lines in the following command:
>
> plot, [0], color = !p.color
>
> If I just entere IDL, and type the command, the color is red, because !p.color is 255. I don't know why it's 255 by default but I know it's red in the X device. But the strange thing is if I type the command again, it becomes white! And !p.color is 16777215. So does anyone know why this is the case?
>
> I normally don't use PLOT command myself (use CGPLOT:)). This is to debug someone else's code.
I would guess this bug in all X Windows versions of IDL
has something to do with it:
http://www.idlcoyote.com/graphics_tips/firstblank.php
But, don't think of this as some inexplicable mystery to be
explained. Rather, think of it as an opportunity to educate
a fellow IDL user to graphics commands that actually work. :-)
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.")
|
|
|
|