| Re: set_plot,'PS' and accurate colors? [message #34269 is a reply to message #33476] |
Mon, 03 March 2003 10:46   |
Alexander Rauscher
Messages: 9 Registered: August 2001
|
Junior Member |
|
|
i use a little work around to avoid the color problems with set_plot, 'ps'
pro tvgif, array, show=xview
sz=size(array)
xdim=sz(1)
ydim=sz(2)
window,31, /pixmap, xsize=xdim,ysize=ydim ; internal window, does not
; appear on the screen
tvscl, array
WRITE_GIF, 'tvgif.gif', TVRD() ;saves image in working directory
wdelete,31
if keyword_set(xview) then spawn, 'xv tvgif.gif'
return
end
usage:
tvgif, array, /show
if i set the keyword 'show' idl spawns xv where i can save my file in a
different format, print it etc...
alex
On Wed, 8 Jan 2003, dave wrote:
*
*
*David Fanning wrote:
*
*> dave (knapp@rtt.colorado.edu.NOSPAM) writes:
*> >
*> > It's looking like IDL can't plot output graphics (PS, metafile etc) with more than
*> > 256 colors ever, is that true?
*>
*> 256 colors out of a palette of 16.7 million. Yes,
*> that is what it means to be an 8-bit device. Computers
*> used to be like this in the old days. :-)
*
*Sigh,
*
*So how does one print anything in IDL with good color selection?
*
*
|
|
|
|