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

Home » Public Forums » archive » polar_contour with log coordinates
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: polar_contour with log coordinates [message #89702 is a reply to message #89688] Tue, 18 November 2014 09:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Andrea Negri writes:

>
> Hi, I'm using polar_contour to plot data from a simulation in spherical coordinates.
> I replaced the contour command with cgcontour in polar_contour, so basically and example is
>
> nr = 50; number of radii
> nt = 50 ; number of Thetas
> ; Create a vector of radii:
> r = FINDGEN(nr)/(nr-1)
> ; Create a vector of Thetas:
> theta = !PI * fINDGEN(nt)/(nt-1)
> ; Create some data values to be contoured:
> z = COS(theta*3) # (r-0.5)^2
> ; Create the polar contour plot:
> POLAR_CONTOUR, z, theta,r, /cell_FILL, nlevels=10, /win, aspect=0.5
>
> everything is ok, but I would like to have the radial axis in log, since I ahve different order of magnitues in the radius of the real data.
> How can I do this?

I'd make sure the variable R is greater than zero, and I would set the
YLOG keyword.

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.")
[Message index]
 
Read Message
Read Message
Previous Topic: cgDrawVectors over map problem?
Next Topic: CGHISTOPLOT - How to make inward X-axis tick marks?

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

Current Time: Wed Oct 08 15:14:08 PDT 2025

Total time taken to generate the page: 0.02278 seconds