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 #71636 is a reply to message #71631] Wed, 07 July 2010 20:56 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"Ally" <ally.deshler@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
[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: Thu Oct 09 21:18:14 PDT 2025

Total time taken to generate the page: 1.27581 seconds