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

Home » Public Forums » archive » color postscript, colortables and TV
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
color postscript, colortables and TV [message #12906] Mon, 14 September 1998 00:00
don shad is currently offline  don shad
Messages: 7
Registered: July 1998
Junior Member
--
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

--
[Message index]
 
Read Message
Previous Topic: Installing AppleEvent Handlers
Next Topic: Polyfill with pattern?

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

Current Time: Fri Oct 10 13:11:03 PDT 2025

Total time taken to generate the page: 1.04250 seconds