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
Re: Multiple colors in one plot statement [message #5785 is a reply to message #5703] Thu, 08 February 1996 00:00 Go to previous messageGo to previous message
Jackel is currently offline  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
[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 21:58:41 PDT 2025

Total time taken to generate the page: 0.32378 seconds