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

Home » Public Forums » archive » Trapped Error. CGPLOT:CGDEFAULTCOLOR
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
Trapped Error. CGPLOT:CGDEFAULTCOLOR [message #86979] Wed, 18 December 2013 12:16 Go to next message
limiqt is currently offline  limiqt
Messages: 27
Registered: October 2013
Junior Member
Dear all,
I have made a code that fit a line in different colors for different group of data. On the screen the figure is produced as expected (using CgWindow) but when I want to save it as a PostScrip file I am getting the following error (even after updating my coyote library):

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

I was wondering if someone knows the reason of this message.

Thanks

Lim
Re: Trapped Error. CGPLOT:CGDEFAULTCOLOR [message #86981 is a reply to message #86979] Wed, 18 December 2013 14:11 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Well, the smart aleck in me wants to say the reason is you're using long integers while in the indexed color mode :-)

Maybe a little more helpful: make sure that your Postscript device is in the decomposed mode. See the keyword PS_DECOMPOSED to cgWindow_SetDefs.
Re: Trapped Error. CGPLOT:CGDEFAULTCOLOR [message #86996 is a reply to message #86981] Thu, 19 December 2013 06:23 Go to previous message
limiqt is currently offline  limiqt
Messages: 27
Registered: October 2013
Junior Member
On Wednesday, December 18, 2013 5:11:25 PM UTC-5, Phillip Bitzer wrote:
> Well, the smart aleck in me wants to say the reason is you're using long integers while in the indexed color mode :-)
>
>
>
> Maybe a little more helpful: make sure that your Postscript device is in the decomposed mode. See the keyword PS_DECOMPOSED to cgWindow_SetDefs.


Hi Phillip,
Yes, the problem was the decomposed mode.
thank you so much.
Lim
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Combining function graphics pan and zoom changes
Next Topic: Keeping objects fixed in function graphics

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

Current Time: Wed Oct 08 11:44:16 PDT 2025

Total time taken to generate the page: 0.00454 seconds