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

Home » Public Forums » archive » Re: Coyote's Colored Line
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: Coyote's Colored Line [message #71631 is a reply to message #71628] Thu, 08 July 2010 08:39 Go to previous messageGo to previous message
Ally is currently offline  Ally
Messages: 13
Registered: June 2010
Junior Member
On Jul 7, 11:56 pm, "R.G. Stockwell" <noem...@please.com> wrote:
> "Ally" <ally.desh...@gmail.com> wrote in message
>
> news:81e91a24-552b-4bf2-a37d-042e4275ac71@u7g2000yqm.googleg roups.com...
>
>> Hi Everyone,
>
>> I need to make a graph with the same properties that Coyotes second
>> Colored Line example has:
>> http://www.dfanning.com/graphics_tips/coloredline.html
>> (the example at the bottom of that page)
>> except that I have three data sets- x, y, and z instead of just x and
>> y.  I want to have the points be colored sequentially in value based
>> on the value of z instead of the value of y.
>
>> How would I need to change his code to do this?
>
>> Thanks,
>> Ally
>
> if I follow you correctly, just replace y with z.
> (in these two lines)
>
>  colors = Round(Scale_Vector(Findgen(s), Min(z), Max(z)))
>    elevColors = Value_Locate(colors, z)
>
> cheers,
> bob

Does that mean the points would be plotted at (x,y) but be colored
according to z?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: image spectral resampling
Next Topic: Truetype fonts an clipping

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

Current Time: Wed Oct 15 16:19:05 PDT 2025

Total time taken to generate the page: 3.19980 seconds