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
polar_contour with log coordinates [message #89688] Sat, 15 November 2014 07:03 Go to previous message
Andrea[1] is currently offline  Andrea[1]
Messages: 7
Registered: November 2010
Junior Member
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?
[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 16:02:31 PDT 2025

Total time taken to generate the page: 0.00281 seconds