Multiple colors in one plot statement [message #5703] |
Wed, 07 February 1996 00:00  |
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
------------------------------------------------------------ --------
|
|
|