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

Home » Public Forums » archive » Problem with long integer color when saving a cgwindow to file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem with long integer color when saving a cgwindow to file [message #87892] Mon, 03 March 2014 08:28 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Hi,

I'm using cgplot in a cgwindow, specifying the color with a long integer. This works fine. But when I try to save it as a graphics file, I get an error of this type:

Traceback Report from CGPLOT:

% CGDEFAULTCOLOR: Improper input color. It is possible 24-bit colors (LONGs)
are being used in indexed color mode to specify colors.


Here is a minimal example:

cgwindow
cgplot, /add, [1, 2, 3], color = 9243623L
; Fine so far
cgcontrol, output = 'test.jpg'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL_Object example // help with
Next Topic: Codeless Language Module for IDL for BBEdit/TextWrangler

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

Current Time: Wed Oct 08 13:33:41 PDT 2025

Total time taken to generate the page: 0.00383 seconds