|
|
|
|
SynopsisCreates a plot. Syntaxadd_plotarea( [ChipsId,][attributes]); add_plotarea( [ChipsId,] px1, py1, px2, py2 [,attributes]); Description
The add_plotarea command creates a plot whose attributes are specified by user preferences or in an attribute list. The new plot becomes current by default; providing a ChipsId overrides the currency state. It is identical to the add_plot command ("ahelp sl.chips add_plot") . The plot is the object which contains axes, curves, contours, and histograms. The lower left and upper right corner of the plot area can be specified by the add_plotarea() argument values (px1, py1) and (px2, py2). Otherwise a plot area is created with margins between the plot border and the frame specified by the four margin attributes: leftmargin, rightmargin, topmargin and bottommargin. Plot BordersPlot borders have three styles: open, box, and closed.
The corners where two lines meet have four styles: miter, bevel, fill, and notch.
Plot TitlesThe plot title is currently not an attribute of the add_plotarea command. It is set with the set_plot_title command:
set_plot_title("Figure 1");
The title is an alphanumeric string, and Latex formatting is allowed. There are many attributes to customize the title via the add_plotarea or set_plot commands: position, depth, horizontal and vertical alignment, angle, color, size, font and fontstyle. ClippingAxes, curves, lines, points and labels in data or plot normalized coordinates are clipped at the window boundaries. Only items in data coordinate systems and lines with the extend property turned on are clipped by the plot border. Customizing the PlotThere are several attributes that control the plot characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_plotarea command, or values from the user's preference file. The attributes may also be modified with the set_plot command at any time; see "ahelp sl.chips set_plot" and "ahelp sl.chips setget" for more information. The attributes associated with plots are:
Example 1chips> add_plotarea(); Simple add_plotarea using the ChIPS defaults for the attribute values. Example 2chips> add_plotarea(.2, .2, .7, .7); The size and location of the plot are indicated by the two XY pairs in the argument list of add_plotarea(). Example 3chips> settings = ChipsPlot; chips> settings.corner.style = "bevel"; chips> settings.style = "box"; chips> settings.stem = "MyPlot"; chips> add_plotarea(settings); Populate the "settings" structure with the attribute values, then add the plot. The plot has a simple border with beveled corners. Example 4
chips> add_plotarea({"style", "closed", "corner.style", "miter" });Add a plot with mitered corners, specifying the attribute values in a list. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. See Also
|
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |