|
|
|
|
SynopsisCreates a plot. Syntaxadd_plot( [ChipsId,][attributes]); add_plot( [ChipsId,] px1, py1, px2, py2 [,attributes]); Description
The add_plot 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. 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_plot() 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_plot 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_plot 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_plot 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 set_plot" and "ahelp setget" for more information. The attributes associated with plots are:
Example 2chips> add_plot(.2, .2, .7, .7); The size and location of the plot are indicated by the two XY pairs in the argument list of add_plot(). Example 3chips> settings = ChipsPlot; chips> settings.corner.style = "bevel"; chips> settings.style = "box"; chips> settings.stem = "MyPlot"; chips> add_plot(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_plot({"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. |