| AHELP for CIAO 4.5 ChIPS v1 | adjust_grid_xrelsize |
Context: plots |
Synopsis
Modifies the widths of one column of plots created by split or grid_objects.
Syntax
adjust_grid_xrelsize([id,] column, size)
Description
- id - an optional ChipsId structure containing values to modify the currency state for the command.
- column - which column of plots to modify. The columns are numbered from left to right, starting at 1.
- size - ratio of the width of the selected column to the other columns (e.g. 1=same size, 2=twice as wide, .5=half as wide).
The adjust_grid_xrelsize command the size of a column of plots relative to the other columns in the frame created by split or grid_objects.
The width of the specified column is set to "size * unit_width". All other columns are set to unit_width.
The following is used to determine the widths of the columns:
available_area = 1 - (left_margin + right_margin + (num_cols -1)*xgapsize) unit_width = available_area / ((num_cols-1) + size)
To change the spacing between the plots, use the adjust_grid_gaps command ("ahelp adjust_grid_gaps") .
Example 1
chips> split(3,3) chips> adjust_grid_xrelsize(2,2)
A split command is issued to create a grid of 9 plots. The adjust_grid_xrelsize command sets the center column to be twice as wide as the other columns.
Example 2
chips> grid_objects(2,2,.05,.05,1) chips> adjust_grid_xrelsize(1,.5)
A grid_objects command is called to create a grid of 4 plot areas. The adjust_grid_xrelsize command makes the first column half as wide as the second column.
Bugs
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.
See Also
- limits
- get_plot_range
- plots
- add_plot, adjust_grid_gaps, adjust_grid_xrelsizes, adjust_grid_yrelsize, adjust_grid_yrelsizes, clear_plot, current_plot, delete_plot, display_plot, get_plot, grid_objects, hide_plot, move_plot, reposition_plot, set_data_aspect_ratio, set_plot, set_plot_aspect_ratio, split, strip_chart, swap_object_positions

![[ChIPS Logo]](../imgs/chips_logo_navbar.gif)