![]() In the example, we suppose that data were collected in the years 1967, 1970, and from 1975 to 1983. PLOT produces linear-linear plots by default, and can produce linear-log, log-linear, or log-log plots with the addition of the XLOG and YLOG keywords.ĭata used in these examples are from a fictitious study of Pacific Northwest Salmon fisheries. This section illustrates the use of the basic x versus y plotting routines, PLOT and OPLOT. PLOT, SIN(D/ 10), PSYM= 4, XTITLE= 'X Axis', YTITLE= 'Y Axis' X Versus Y Plots PLOT, D, D, /POLAR, TITLE = 'Polar Plot' Use plotting symbols instead of connecting lines PLOT, SIN(D/ 3), COS(D/ 6) Create a polar plot: PLOT, D, TITLE = 'Simple Plot' Plot one argument versus another: Create a simple plot with the title "Simple Plot": Here are a few simple examples using the PLOT command. The PLOT procedure has many keywords that allow you to create a vast variety of plots. This section includes the following examples: Set bit 4 in !Y.STYLE to make this option the default. By default, the Y axis spans the range of 0 to the maximum value of Y, in the case of positive Y data. Set this keyword to inhibit setting the minimum Y axis value to zero when the Y data are all positive and nonzero, and no explicit minimum Y value is specified (using YRANGE, or !Y.RANGE). Note that logarithmic axes that have ranges of less than a decade are not labeled. Set both XLOG and YLOG to produce a log-log plot. Set this keyword to specify a logarithmic Y axis, producing a linear-log plot. Set this keyword to specify a logarithmic X axis, producing a log-linear plot. A thickness of 1.0 is normal, 2 is double wide, etc. THICKĬontrols the thickness of the lines connecting the points. Note: See Using AXIS with Polar Plots for an example that adds axes to a polar plot. For example, to make a polar plot, you would use a command such as: PLOT, /POLAR, R, THETA The first parameter is the radius, and the second is the angle (expressed in radians). The X and Y vector parameters, both of which must be present, are first converted from polar to Cartesian coordinates. It is convenient to use NSUM when there is an extremely large number of data points to plot because it plots fewer points, the graph is less cluttered, and it is quicker. On logarithmic axes a geometric average is performed. If there are m data points, then m/NSUM points are displayed. If NSUM is larger than 1, every group of NSUM points is averaged to produce one plotted point. The presence of this keyword indicates the number of data points to average when plotting. Note that the IEEE floating-point value NaN is also treated as missing data. If this keyword is present, data values less than the value of MIN_VALUE are treated as missing and are not plotted. If this keyword is present, data values greater than the value of MAX_VALUE are treated as missing and are not plotted. Note: The X and Y axes will be scaled isotropically and then fit within the rectangle defined by the POSITION keyword one of the axes may be shortened. Set this keyword to force the scaling of the X and Y axes to be equal. Changing the value of a system-variable field changes the default for that particular parameter and remains in effect until explicitly changed. When specifying a keyword parameter name and value in a call that value affects only the current call, the corresponding system-variable field is not changed. Note: Many of the graphic keyword parameters correspond directly to fields in the system variables !P, !X, !Y, or !Z. This argument is converted to double-precision floating-point before plotting. Plots created with PLOT are limited to the range and precision of double-precision floating-point values. This argument is converted to double precision floating-point before plotting. If both arguments are provided, Y is plotted as a function of X. If X is not specified, Y is plotted as a function of point number (starting at zero). Graphics Keywords: ] Ī vector representing the abscissa values to be plotted. PLOT can also be used to create polar plots by setting the POLAR keyword. To plot one vector as a function of another, use two parameters. If one parameter is used, the vector parameter is plotted on the ordinate versus the point number on the abscissa. ![]() The PLOT procedure draws graphs of vector arguments. Note: Please see the newer PLOT function, which replicates the functionality of this older routine but offers an interactive interface and updated functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |