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

Home » Public Forums » archive » Re: Associate a color to each element in a vector
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: Associate a color to each element in a vector [message #76585 is a reply to message #76584] Sun, 12 June 2011 13:41 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Jun 12, 9:25 am, "le.davide" <le.dav...@tiscali.it> wrote:
> Dear all,
> consider a scatter plot of the couple of points (x,y), where each x
> and y is an array. Do you know if it is possible to associate a color
> to each element according to its position in the vector?
> ...I don't know of much this is clear.
> Thanks in advance.

So, what you probably want is something like this.

colors = indgen(n_elements(x))
plots, x, y, color=colors, psym=1
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function Graphics Question
Next Topic: Re: Creating Polygon Shapefile with IDL

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

Current Time: Fri Oct 10 00:33:05 PDT 2025

Total time taken to generate the page: 0.08237 seconds