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

Home » Public Forums » archive » Object graphics color scattergram
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Object graphics color scattergram [message #25450] Wed, 13 June 2001 17:57
Jeffrey R. Hall is currently offline  Jeffrey R. Hall
Messages: 5
Registered: June 2001
Junior Member
In IDL object graphics, how does one do a scatter plot where
the points are colored by some set of values? Here is an
example using direct graphics:

DEVICE,PSEUDO=8
seedx = !pi
seedy = !pi ^ 2
x = BYTSCL(RANDOMU(seedx, 100, GAMMA=1))/255.0
y = BYTSCL(RANDOMN(seedy, 100, GAMMA=1))/255.0
z = BYTE( x * 255 )
LOADCT,15
PLOTS,x,y,COLOR=z,PSYM=1,LINESTYLE=6

I have tried IDLgrPlot with and w/o IDLgrSymbol, and also
IDLgrPolyline. Lines can be colored, even faded from one
vertex to the next. But if the lines are omitted then no
points are drawn, and if IDLgrSymbol is used then they are
all the same color.

Plus, I need this to be in 24 bit color rather than PSEUDO=8.

Thanks in advance,

Jeff

--
Jeffrey.R.Hall@jpl.nasa.gov (818)354-4249
Member Technical Staff, Science Data Processing Systems, Section 388
Jet Propulsion Laboratory, Pasadena, CA 91109, Mail Stop 168-415
http://www-dial.jpl.nasa.gov/~jeff
[Message index]
 
Read Message
Previous Topic: Re: IDL and NetCDF
Next Topic: Re: Writing display as jpeg

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

Current Time: Wed Oct 08 19:59:31 PDT 2025

Total time taken to generate the page: 0.00365 seconds