--
hi
i am having trouble getting the proper colors to be displayed
in a color postscript output with custom colormaps. when i use
a 6 (or 12, or ?) color custom colormap i cannot get images that
are placed using TV to use this colormap when the device is
postscript. on-screen the TV images have the correct colors.
for example, the following code works as expected with onscreen
(X terminal) display - it makes a colorbar, and a plot with two
different color lines; however, when the device is set to ps,
with /color, the code produces a solid rectangle of red instead
of the colorbar. the lines drawn with the plot commands are of
the proper color.
red = [ 255, 250, 150,50,0, 0]
green = [ 0, 150, 200, 200, 70, 0]
blue = [ 0, 0, 0, 100, 240, 255]
b=replicate(1b,20) # bindgen(100)
b=bytscl(b,top=6)
set_plot,"ps"
device, /color,filename="test.ps"
tvlct, red, green, blue
plot, [4,5],[6,8], color=2
plots,[4,5],[7,7], color=4
tv, b
end
so is my code wrong, or does the TV command not actually look at the
newly loaded colortable, or is there something else that i am missing?
i would appreciate any help.
thanks very much,
don schad
hydroqual, inc
--
|