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

Home » Public Forums » archive » A newbie question regarding 3D plotting
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
A newbie question regarding 3D plotting [message #86031] Tue, 24 September 2013 16:24 Go to next message
mxfong2012 is currently offline  mxfong2012
Messages: 5
Registered: September 2012
Junior Member
I would like to make a 3D plot like the one below:
https://docs.google.com/file/d/0B9P_kUabfW3WeElQVVVHMU9PUlE/ edit?usp=sharing

Assuming that I have longitude data (1-D vector, lng(:)), latitude data (1-D vector, lat(:)), and value data over the longitude-latitude grid (2-D vector, value(:,:)), how can I make such a plot? Sample codes would be much more helpful.

Another related question: if not using a contour but filling each longitude-latitude mesh with a discrete color (like POLYFILL in 2-D plotting), how can I do that?

Thank you very much!

-Mike
Re: A newbie question regarding 3D plotting [message #86032 is a reply to message #86031] Tue, 24 September 2013 16:30 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mxfong2012@gmail.com writes:

> I would like to make a 3D plot like the one below:
> https://docs.google.com/file/d/0B9P_kUabfW3WeElQVVVHMU9PUlE/ edit?usp=sharing

I can't see the plot to know what you are talking about. Sorry.

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: A newbie question regarding 3D plotting [message #86033 is a reply to message #86032] Tue, 24 September 2013 16:35 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I can't see the plot to know what you are talking about. Sorry.

Oh, wait. I had to log in. Now I see it. I think the easiest way to do
that would be as a filled contour plot on an orthographic map
projection.

Heading off to tennis. Maybe I can come up with an example later.

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: A newbie question regarding 3D plotting [message #86034 is a reply to message #86033] Tue, 24 September 2013 16:47 Go to previous messageGo to next message
mxfong2012 is currently offline  mxfong2012
Messages: 5
Registered: September 2012
Junior Member
Sorry for the confusion. I did check the sharing setting with no sign-in required in Google Drive but don't know what happened to prevent you from an easy view. Anyway, glad that you can see the plot now.

It would be helpful if you can also show me in your example how to adjust the viewing angle. That is, it would be great if I can generate a 3-D plot viewed from the North Pole, or from the Sun.

Many thanks!

-Mike


> David Fanning writes:
> Oh, wait. I had to log in. Now I see it. I think the easiest way to do
>
> that would be as a filled contour plot on an orthographic map
>
> projection.
>
>
>
> Heading off to tennis. Maybe I can come up with an example later.
>
>
Re: A newbie question regarding 3D plotting [message #86035 is a reply to message #86034] Tue, 24 September 2013 21:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mxfong2012@gmail.com writes:

> It would be helpful if you can also show me in your example how to adjust the viewing angle. That is, it would be great if I can generate a 3-D plot viewed from the North Pole, or from the Sun.

Well, these don't look like 3D plots to me. They look like 2D map
projections. Perhaps you are thinking of a polar stereographic
projections of the sort shown here:

http://www.idlcoyote.com/gallery/index.html#POLARWIND

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: temporary() problem
Next Topic: delete a tagname from a structure?

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

Current Time: Wed Oct 08 11:53:58 PDT 2025

Total time taken to generate the page: 0.00659 seconds