METAFILE + TVLCT [message #43293] |
Fri, 25 March 2005 13:59 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
I got started using the 255-color color tables IDL provides, which are
useful immediately for quick plotting. After a while, I got greedy and
started using TVLCT when I needed another color that wasn't in the
color table I was using. Now I am creating my graphics as METAFILES and
have found this trick doesn't seem to work. I initialize the device as
follows:
> set_plot,'METAFILE'
> device,file=outfile
> device,xsize=xsize/30,ysize=ysize/30
> device,/index
> device,true=0
Then, I use TVLCT to give me colors I need, such as adding a gray for
NODATA to my usual ROYGBIV colors:
> loadct,39
> tvlct,[100,100,100],1
This works beautifully on the WIN display device, but does not change
the colors at all in the METAFILE.
Is there another workaround for this?
|
|
|