Re: Multiple colors in one plot statement [message #5785 is a reply to message #5703] |
Thu, 08 February 1996 00:00   |
Jackel
Messages: 30 Registered: April 1993
|
Member |
|
|
In article <4fb1p2$cbp@peabody.colorado.edu> eparvier@stripe.Colorado.EDU (Eparvier Francis) writes:
> Does anyone know of a way to get around the limitation that
> the COLOR keyword for the PLOT command only takes a scalar?
From the version 4.0.1 help
"The PLOTS procedure plots vectors or points on the current graphics device in
either two or three dimensions. The coordinates can be given in data, device,
or normalized form using the DATA (the default), DEVICE, or NORMAL keywords.
The COLOR keyword can be set to a scalar or vector value. If it is set to a vector value,
the line segment connecting (Xi, Yi) to (Xi+1, Yi+1) is drawn with a color
index of COLORi+1. In this case, COLOR must have the same number of elements
as X and Y."
So you might try making the plot area, then using PLOTS to draw the points.
> 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.
VELOVECT is a user contributed routine, so the source is available to change,
or you could write a wrapper routine (VELOVECTS?) which looped for you.
Brian Jackel
University of Western Ontario
|
|
|