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

Home » Public Forums » archive » Re: set_plot,'PS' and accurate colors?
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: set_plot,'PS' and accurate colors? [message #34269 is a reply to message #33476] Mon, 03 March 2003 10:46 Go to previous messageGo to previous message
Alexander Rauscher is currently offline  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?
*
*
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: writing ascii files (with really long lines...)
Next Topic: Re: dlm returning ptr array and string array

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

Current Time: Sat Nov 29 01:55:59 PST 2025

Total time taken to generate the page: 0.72368 seconds