|
|
|
|
SynopsisModifies the attributes of an existing plot. Syntaxset_plot([id,] values); Description
The set_plot command sets the specified attributes to the provided values. The modified plot becomes current. Multiple plots may be modified with a single command by setting the currency to "all". Customizing the PlotThere are several attributes that control the characteristics of plots. The set_plot command may be used to modify the attribute values of an existing plot at any time during a ChIPS session. See "ahelp sl.chips attributes" and "ahelp sl.chips setget" for more general information. If multiple attributes are being set simultaneously and one of them fails, the entire command will fail and the plot will not be modified. The attributes associated with plots are:
These individual commands are also available for setting attribute values: set_plot_axisstyle set_plot_bottommargin set_plot_cornerstyle set_plot_leftmargin set_plot_rightmargin set_plot_title_angle set_plot_title_color set_plot_title_depth set_plot_title_font set_plot_title_fontstyle set_plot_title_halign set_plot_title_size set_plot_title_valign set_plot_title_xpos set_plot_title_ypos set_plot_topmargin 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 Titles and Axis LabelsThe plot title and axis labels are not controlled by an attribute of the set_plot command. They are specified with the set_plot_title, set_plot_xlabel, and set_plot_ylabel commands:
set_plot_title("Figure 1");
set_plot_xlabel("TIME (s)");
set_plot_ylabel("COUNT\\_RATE (count/s)");
The value is an alphanumeric string; Latex formatting is allowed. There are many attributes to customize the title via the set_plot command: position, depth, horizontal and vertical alignment, angle, color, size, font and fontstyle. Example 2
chips> settings = ChipsPlot;
chips> settings.style = "box";
chips> settings.corner.style = "bevel";
chips> set_plot("plot1",settings);Populate the "settings" structure with attribute values, then use it to set plot1 to have a box border style with beveled corners. Example 3
chips>a =struct {style};
chips>a.style="open";
chips>set_plot(a);Create a user-defined structure with bgcolor and transparency fields. Use the structure to modify the values of the current plot. 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. |