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

Home » Public Forums » archive » Polar Plots?
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
Polar Plots? [message #12664] Fri, 07 August 1998 00:00 Go to next message
dfinan is currently offline  dfinan
Messages: 3
Registered: August 1998
Junior Member
Am I missing something or is there no easy way to do polar plots (with
0-360deg axis) in IDL? All I want to do is to make a phase plot with
concentric rings for the radius. I've seen ppi.pro and am attempting to
modify, but this is my first experience with polar plots, so it's slow
going. Any tips?

Don Finan
dfinan@indiana.edu
Re: polar plot [message #13832 is a reply to message #12664] Thu, 17 December 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Torsten Bock (bock@sunpool.cs.uni-magdeburg.de) writes:

>> Have you tried:
>>
>> Plot, radii, angles, /Polar
>>
> I did but (I hope I did nothing wrong) I end up with a polar plot in a
> cartesian system (x and y axis), which is not what I expected.
> I was thinking of circles on which I can annotate the radius-value
> and I like to annotate the theta (angle) value around the outer circle.
> and the Intensity is either a color (for contour plot).
> or in 3D the z value (cylindrical coordinate system) ...

Oh, well, then...

You are going to have to use IDL to do (I hate to say this)
some *programming*. :-(

I'd start with the Plot command without axes ([XY]Style=4),
and put your own circles on. (See my web page for some
example code and other links for Circles.) I don't think
it will take you more than about a half hour to come up with
exactly what you want.

Cheers,

David

P.S. As long as your doing it, I'd write it as an object, too.
That way you would see how easy it is to write programs that work
better in particular circumstances than the ones that sometimes
come with IDL. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: polar plot [message #13833 is a reply to message #12664] Thu, 17 December 1998 00:00 Go to previous message
Torsten Bock is currently offline  Torsten Bock
Messages: 2
Registered: December 1998
Junior Member
David Fanning schrieb:

> Torsten Bock (bock@sunpool.cs.uni-magdeburg.de) writes:
>
>> I am locking for a routine to display data [radius, theta, intensity]
>> in a polar plot (in a polar coordinate system)
>> not like polar_contour and polar_surface
>> (they display the data in a cartesian system).
>
> Have you tried:
>
> Plot, radii, angles, /Polar
>
> Cheers,
>
> David

I did but (I hope I did nothing wrong) I end up with a polar plot in a
cartesian system (x and y axis), which is not what I expected.
I was thinking of circles on which I can annotate the radius-value
and I like to annotate the theta (angle) value around the outer circle.
and the Intensity is either a color (for contour plot).
or in 3D the z value (cylindrical coordinate system) ...

Thanks

Mirko
Re: polar plot [message #13839 is a reply to message #12664] Thu, 17 December 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Torsten Bock (bock@sunpool.cs.uni-magdeburg.de) writes:

> I am locking for a routine to display data [radius, theta, intensity]
> in a polar plot (in a polar coordinate system)
> not like polar_contour and polar_surface
> (they display the data in a cartesian system).

Have you tried:

Plot, radii, angles, /Polar

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: zoom capability in IDL object graphics?
Next Topic: Re: Fortran External Calls

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

Current Time: Wed Oct 08 17:08:27 PDT 2025

Total time taken to generate the page: 0.00681 seconds