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

Home » Public Forums » archive » Re: color PS output error??
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: color PS output error?? [message #37941 is a reply to message #37939] Sun, 08 February 2004 09:20 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Son" <shson@darkstar.sr.unh.edu> wrote in message news:62cdb6eb.0402080806.43503b7f@posting.google.com...
> Dear Sir,
>
> I'm making color image to Postscript output file.
> Although I could see the color images/figures in the windows, the PS
> file doesn't show the color images/figures (just black & white) when I
> made it as a PS output file. The computer system is Linux. Could
> someone help me?
>
> I'm usally writing the program like this...
>
> ;=============================
> IF strlowcase(!version.os) EQ 'linux' THEN BEGIN
> device, true_color=24
> device, get_visual_depth=depth
> device, true_color=depth
> window, /free, /pixmap, colors=-10
> wdelete, !d.window
> device, decomposed=0, retain=2
> ENDIF
> ;.............
> LOADCT, 39
>
>
>
> SET_PLOT, 'PS'
> DEVICE, /ENCAPSUL, BITS_PER_PIXEL=8, $
> Filename='xxx.ps', xsize=16., ysize=16.
> !P.MULTI=[0, 1, 1, 0, 1]
>
> DEVICE, /CLOSE
> ;=============================
>
>
> Thanks.
>
>
> Son

Dear Son,
add "/color" to the device call (immediately after your set_plot,'ps' command).

Cheers,
bob

PS mom sends her love. :)

From the help:
The DEVICE procedure provides device-dependent control over the current graphics device (as set by the SET_PLOT routine). The IDL
graphics procedures and functions are device-independent. That is, IDL presents the user with a consistent interface to all devices.
However, most devices have extra abilities that are not directly available through this interface. DEVICE is used to access and
control such abilities. It is used by specifying various keywords that differ from device to device.

See IDL Graphics Devices for a description of the keywords available for each graphics device.

Syntax
Note
------------------------------------------------------------ --------------

Each keyword to DEVICE is followed by the device(s) to which it applies.

[, /COLOR{PCL, PS}]
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: color PS output error??
Next Topic: Using IDL in a ultiprocessor real-time system ?

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

Current Time: Wed Oct 08 19:58:01 PDT 2025

Total time taken to generate the page: 0.00414 seconds