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

Home » Public Forums » archive » Plotting in color on a 24 bit display
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Plotting in color on a 24 bit display [message #4991] Mon, 28 August 1995 00:00
jmcfee is currently offline  jmcfee
Messages: 17
Registered: August 1995
Junior Member
I am trying to plot multiple graphs in different colors in IDL 4.0 on a
Sparcstation 20 with a 24 bit display. My old programs, designed for an
8-bit display, do not work. As a first step, I ran the following very
simple pro file to plot white on black:

red = [1,0,0,1,1,0,.9,.7,1,0]
green = [0,1,0,1,0,1,.9,.9,1,0]
blue = [0,0,1,0,1,1,.7,.9,1,0]
s = size(red)
nct = s(1)
erase
bck_color = long(red(nct-1) + 256L*(green(nct-1) + 256L*blue(nct-1)))
plt_color = long(red(nct-2) + 256L*(green(nct-2) + 256L*blue(nct-2)))
d = findgen(100)
plot,d,background=bck_color,color=plt_color,title='Simple plot'
end

and I just get a black screen. According to the manual - Users Guide
p.16-13 - (yes, I HAVE read the manual) this should work! I've tried
changing the color indices to no avail. Am I doing something stupid?
Any help is greatly appreciated.

P.S. The display is working OK. I can TV, image, channel=0,1,2,3 with
no problem. Adding the channel=0,1,2,3 keyword to the plot command
doesn't help.

--
John E. McFee -- Usual disclaimer applies.
Threat Detection Group -- "They can kill you -
Defence Research Est. Suffield -- but they're not allowed to eat you."
jmcfee@dres.dnd.ca -- - Chuck Jones
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Pvwave for Linux ?
Next Topic: IDL 4.0.1 for Linux

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

Current Time: Wed Oct 08 13:38:34 PDT 2025

Total time taken to generate the page: 0.00633 seconds