|
|
|
|
SynopsisModifies the widths of all columns of plots created by split or grid_objects. Syntaxadjust_grid_xrelsizes([id,] widtharray) Description
The adjust_grid_xrelsizes command the size of all columns of plots in a frame created by split or grid_objects using the values supplied for each column in the "widtharray" parameter. The relational widths of all columns must be specified. For each column i, the width is calculated as "widtharray[i] * unit_width", where available_area = 1 - (left_margin + right_margin + (num_cols -1)*xgapsize) arraysum = widtharray[0] + widtharray[1] + .. + widtharray[n] unit_width = available_area / arraysum Since the columns are adjusted based on ratios of the widtharrays, the scale of the values is not important. The arrays "[100,200,400]", "[.1,.2,.4]", and "[5,10,20]" all produce the same column widths: the columns double in size as they move from left to right. To change the spacing between the plots, use the adjust_grid_gaps command ("ahelp py.chips adjust_grid_gaps") . Example 1chips> split(3,3) chips> adjust_grid_xrelsizes([1,2,3]) A split command is issued to create a grid of 9 plots. The adjust_grid_xrelsizes command sets the width of the second and third columns of plots to be douple and triple the width of the first column, respectively. Example 2chips> grid_objects(2,2,.05,.05,1) chips> adjust_grid_xrelsizes([32,68]) A grid_objects command creates a grid of 4 plot areas. The adjust_grid_xrelsizes command set the first column to 32 percent of the frame and the second column to 68 percent of the frame. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. |
![]() |
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. |