The POLAR_CONTOUR procedure draws a contour plot from data in polar coordinates. Data can be regularly- or irregularly-gridded. All of the keyword options supported by CONTOUR are available to POLAR_CONTOUR.
This routine is written in the IDL language. Its source code can be found in the file
polar_contour.pro
in the
lib
subdirectory of the IDL distribution.
The data values to be contoured. If the data is regularly gridded, Z must have the dimensions (N_ELEMENTS( Theta ), N_ELEMENTS( R ). Note that the ordering of the elements in the array Z is opposite that used by the POLAR_SURFACE routine.
POLAR_CONTOUR accepts all of the keywords accepted by the CONTOUR routine except C_LABELS, DOWNHILL, FOLLOW, PATH_FILENAME, PATH_INFO, and PATH_XY. See CONTOUR . In addition, there is one unique keyword:
The first example uses POLAR_CONTOUR with regularly-gridded data:
nr = 12 ; The number of radii.
nt = 18 ; The number of Thetas.
r = FINDGEN(nr)/(nr-1) ; Create a vector of radii.
theta = 2*!PI * FINDGEN(nt)/(nt-1) C; reate a vector of Thetas.
z = COS(theta*3) # (r-0.5)^2 ; Create some data values to be contoured.
POLAR_CONTOUR, z, theta, r, /FILL, c_color=[2, 3, 4, 5]
;
Create the polar contour plot.