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

Home » Public Forums » archive » Re: What color should it be?
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: What color should it be? [message #79989 is a reply to message #79988] Thu, 19 April 2012 12:47 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Previous Topic: What color should it be?
Next Topic: Keyword DIMENSION not allowed in call to: MOMENT

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

Current Time: Sun Nov 30 04:56:22 PST 2025

Total time taken to generate the page: 0.96051 seconds