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

Home » Public Forums » archive » Re: Setting colors for Plotting to PRINTER
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: Setting colors for Plotting to PRINTER [message #26256 is a reply to message #26255] Sat, 11 August 2001 19:29 Go to previous messageGo to previous message
Aaron Birenboim is currently offline  Aaron Birenboim
Messages: 24
Registered: October 2000
Junior Member
After reviewing Dr. Fanning's code, it appears to me that
the following should work for a color plot on all non-screen devices
(or at least the ones where !D.NCOLORS EQ 256) :

TVLCT,255,0,0,22
PLOT,indgen(9),COLOR=22

To produce a red plot.
Is this correct????

--- However, my PS device (at least) still appears black.
that may be a seperate issue to look into later.

All that aside....
There is a special case for 'PRINTER' where fsc_color.pro
seems to NOT do the TVLCT call.
How is it that for 'PRINTER' a color gets loaded into index 22....
when the TVLCT call appears to be skipped?

This is kind of hard for me to test, since I do not have
a color printer on my development system.

How would the color 22 get set to red for:

SET_PLOT,'PRINTER'
c = fsc_color('red',22)
; i think c would be 22 here
PLOT,indgen(9),COLOR=c

Is there any place in the IDL documentation that covers
how to set PLOT colors on non-screen devices?
Is the PRINTER device somehow different from other
non-screen devices?
--
Aaron Birenboim | Black holes are where G-d divided
Albuquerque, NM | by zero.
aaron@boim.com |
boim.com/~aaron | -Steven Wright
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Version Control
Next Topic: color widget

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

Current Time: Wed Oct 08 19:29:14 PDT 2025

Total time taken to generate the page: 0.00409 seconds