The margins will be adjusted to leave space for the axes. 2 - Box axes - multiple axes located at both the minimum and maximum data values.1 - Single X, Y (and Z if 3D) axes located at the minimum data value.Decrease the margins so the graphic almost fills the window. Set this keyword to one of the following values: For more information about the syntax of the Format argument, see “Formatting IDL Graphics Symbols and Lines”. From one to four tokens can be present, and the tokens may be in any order. Tokens in the Format string represent values of the LINESTYLE, COLOR, THICK, and SYMBOL properties. For example, to create a plot with a solid red line of thickness 2, using the '+' symbol to mark data points, you would use the following: p = POLARPLOT(R, THETA, '-r2+') FormatĪ string that sets line and symbol format properties using short tokens to represent color, symbol, linestyle, and thickness values. ThetaĪ vector representing the angle (in radians) of the polar plot. If R is not specified, Theta is plotted as a function of the vector index of Theta. If R is specified, Theta is plotted as a function of R. ArgumentsĪ vector representing the radius of the polar plot. Use the returned reference to manipulate the graphic after creation by changing properties or calling methods. The POLARPLOT function returns a reference to the created graphic. Properties can be set as keywords to the function during creation, or retrieved or changed using the "." notation after creation.ĪNTIALIAS, ASPECT_RATIO, BACKGROUND_COLOR, AXES, BACKGROUND_TRANSPARENCY, CLIP, COLOR, CROSSHAIR, FONT_COLOR, FONT_NAME, FONT_SIZE, FONT_STYLE, HIDE, LINESTYLE, NAME, POSITION, RGB_TABLE, SYM_COLOR, SYM_FILLED, SYM_FILL_COLOR, SYM_INCREMENT, SYMBOL, SYM_SIZE, SYM_THICK, SYM_TRANSPARENCY, THICK, TITLE, TRANSPARENCY, UVALUE, VERT_COLORS, WINDOW, WINDOW_TITLE, XRANGE, YRANGE Methods BUFFER, / CURRENT, / DEVICE, DIMENSIONS=, LAYOUT= array, LOCATION=, MARGIN= scalar or, / NO_TOOLBAR, / NODATA, / OVERPLOT, / WIDGETS Properties Keywords are applied only during the initial creation of the graphic. Graphic = POLARPLOT( R, Theta, ) Keywords
See Plot examples for additional examples using the POLARPLOT function. The following lines create the Nyquist plot shown at the top of this topic.
If R is not supplied, POLARPLOT uses a vector of indices for the R argument. It will fail on the z defined above unless you use something like Simpify on it.The POLARPLOT function creates a plot using the polar coordinates R and Theta. Note that this will only work on explicitly complex numbers - ie those with the FullForm of Complex.
Will make the conversion automatic In:= 1 + I In:= ComplexToPolar = z // FullSimplifyįor expanding out functions (not that this was part of your question) you use In:= Comple圎xpand] If you only need to do it occasionally, then you could just define a function like In:= ComplexToPolar / z \ Complexes := Abs Exp]