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

Home » Public Forums » archive » Re: on the background color of cgplot
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: on the background color of cgplot [message #84466 is a reply to message #84458] Sun, 26 May 2013 13:56 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
simona bellavista writes:

> I have a peculiar problem with cgplot, the background is red and the points that are supposed to be black are cyan. This only happen when I connect to the computer cluster via vnc and use cgplot. If I use 'plot' instead of 'cgplot', I correctly get a black on white figure.
> I noticed that if I put explictly background=cgcolor('white') in the cgplot, the background is correctly white. While if I put color=cgcolor('black'), the points are black but the axes are still cyan. I would like to set the background and the color once at the beginning before calling cgplot. Is this possible?

This sounds to me like the cluster machine is using 16-bit color, rather
than 24-bit color. Could you log onto the cluster and run IDL without
running your initializing script? From inside of IDL, I'd like to know
the results of this command:

IDL> Help, /Device

I suspect you are unsuccessful in putting IDL into 24-bit mode on this
cluster machine. Maybe because an IDL graphics window has already been
opened by the time your initializing script is run. On UNIX, once a
window is opened, you cannot change the depth of the visual class that
is selected.

I'd also be curious what cgPlot would do if you set yourself up in
decomposed color mode (Decomposed=1, which is what I recommend you do if
you want to use Coyote Graphics routines).

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: nested structures
Next Topic: Re: type conversion error - help needed urgent

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

Current Time: Sat Oct 11 03:45:43 PDT 2025

Total time taken to generate the page: 2.32225 seconds