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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: What color should it be? [message #79988] Thu, 19 April 2012 20:04
Xin Tao is currently offline  Xin Tao
Messages: 40
Registered: April 2011
Member
Thanks for the explanation. That seems to be the solution.

Anyway, it's really unfortunate. This seems to be something that's really basic.

Xin Tao

On Thursday, April 19, 2012 2:47:45 PM UTC-5, David Fanning wrote:
> 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.")
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 16:02:06 PDT 2025

Total time taken to generate the page: 0.00546 seconds