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

Home » Public Forums » archive » Multiple colors in one plot statement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Multiple colors in one plot statement [message #5703] Wed, 07 February 1996 00:00 Go to previous message
eparvier is currently offline  eparvier
Messages: 4
Registered: October 1991
Junior Member
Does anyone know of a way to get around the limitation that
the COLOR keyword for the PLOT command only takes a scalar?
I want to plot a bunch of points, with coordinates contained
in the vectors X and Y, but I want the color of each of the
points to correspond to information contained in another
vector Z (same length as X and Y, but scaled in value to
match the size of the color table of choice). Using the
command:

PLOT, X, Y, PSYM=2, COLORS=Z

doesn't work because COLORS can only be a scalar. The work-
around that I came up with involves having to plot each of
the individual elements one-by-one with a series of OPLOT
statements, setting the color individually. Is there a
separate keyword analagous to the C_COLORS in CONTOUR or
the SHADES keyword in SHADE_SURF, but for PLOT? Or is
there a command or routine that I'm not aware of that
will do what I want?

It would also be nice to be able to make each of the arrows
created by VELOVECT an aribitrary color described by a
separate color array all in one fell swoop instead of
using repeated calls to the routine.

Anyone have any ideas?

Thanks,
Frank
------------------------------------------------------------ --------
Frank Eparvier, Research Associate Work: (303)497-7394
NOAA Space Environment Center Home: (303)673-0913
University of Colorado - CIRES
E-mail: eparvier@colorado.edu
WWW: http://stripe.colorado.edu/~eparvier/Home.html
------------------------------------------------------------ --------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Labels for Map Meridians, Parallels
Next Topic: Re: [Q] compiling error

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

Current Time: Fri Oct 10 10:31:27 PDT 2025

Total time taken to generate the page: 0.79967 seconds