Re: plot z vector on x-y plot [message #82457] |
Fri, 14 December 2012 12:04  |
justinclouds
Messages: 25 Registered: December 2012
|
Junior Member |
|
|
Works very nicely. THANKS!
Duncan
On Friday, December 14, 2012 11:15:33 AM UTC-7, David Fanning wrote:
> justinclouds writes:
>
>
>
>> It is hard to explain.
>
>
>
> Which usually makes it hard to program, too. :-)
>
>
>
>> Something like this would be a good example
>
>> http://fuelberg.met.fsu.edu/research/arctas/traj/traj.html (the top figure showing a flight track in lat/lon with a property plotted along the track ... in this case pressure is plotted)
>
>
>
> Well, I think the examples on this page are pretty much
>
> what you have in mind:
>
>
>
> http://www.idlcoyote.com/graphics_tips/coloredline.html
>
>
>
>> I am checking a few things in iplot but so far no success.
>
>
>
> iPlot!? Well, good luck with that. :-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
|
|
Re: plot z vector on x-y plot [message #82524 is a reply to message #82457] |
Tue, 18 December 2012 15:05  |
markjamie
Messages: 30 Registered: November 2012
|
Member |
|
|
You could also do this with function graphics by plotting with symbols and using the vert_colors keyword to provide your z vector.
Off the top of my head...
P=plot(x, y, symbol='o', vert_colors=z, rgb_table=39)
Syntax may be slightly wrong as I'm quoting from memory but should hopefully give the right idea.
This obviously only comes out as a line if you have a lot of data points.
Mark
|
|
|