Re: Coyote's Colored Line [message #71628] |
Thu, 08 July 2010 09:14 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ally writes:
> Does that mean the points would be plotted at (x,y) but be colored
> according to z?
That's what it means. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: Coyote's Colored Line [message #71631 is a reply to message #71628] |
Thu, 08 July 2010 08:39  |
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?
|
|
|
Re: Coyote's Colored Line [message #71636 is a reply to message #71631] |
Wed, 07 July 2010 20:56  |
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
|
|
|
Re: Coyote's Colored Line [message #71637 is a reply to message #71636] |
Wed, 07 July 2010 19:56  |
Ally
Messages: 13 Registered: June 2010
|
Junior Member |
|
|
On Jul 7, 10:52 pm, Ally <ally.desh...@gmail.com> wrote:
> 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
Also, my iTools have been acting up so I'd like to do this without
using them if possible.
Thanks!
|
|
|