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

Home » Public Forums » archive » Re: plot z vector on x-y plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: plot z vector on x-y plot [message #82457] Fri, 14 December 2012 12:04 Go to next message
justinclouds is currently offline  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 #82461 is a reply to message #82457] Fri, 14 December 2012 10:15 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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 #82462 is a reply to message #82461] Fri, 14 December 2012 10:10 Go to previous messageGo to next message
justinclouds is currently offline  justinclouds
Messages: 25
Registered: December 2012
Junior Member
It is hard to explain. 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)

I am checking a few things in iplot but so far no success.

Thanks!
Duncan

On Thursday, December 13, 2012 6:52:23 AM UTC-7, David Fanning wrote:
> justinclouds writes:
>
>
>
>> I would like to plot z (a vector) as a color scale along an x-y plot (latitude vector and longitude vector). Anybody have any ideas on how to do this in IDL?
>
>
>
> I'm not clear exactly what you have in
>
> mind here. Is it something like this:
>
>
>
> http://www.idlcoyote.com/graphics_tips/coloredline.html
>
>
>
> 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 #82483 is a reply to message #82462] Thu, 13 December 2012 05:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
justinclouds writes:

> I would like to plot z (a vector) as a color scale along an x-y plot (latitude vector and longitude vector). Anybody have any ideas on how to do this in IDL?

I'm not clear exactly what you have in
mind here. Is it something like this:

http://www.idlcoyote.com/graphics_tips/coloredline.html

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 Go to previous message
markjamie is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Image reading
Next Topic: trivial problem: How do I change the axis scale in an image plot?

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

Current Time: Wed Oct 08 15:35:10 PDT 2025

Total time taken to generate the page: 0.00552 seconds