| AHELP for CIAO 4.5 ChIPS v1 | set_data_aspect_ratio |
Context: plots |
Synopsis
Set or retrieve the aspect ratio information of the data.
Syntax
set_data_aspect_ratio([ChipsId], ratio) get_data_aspect_ratio([ChipsId])
Description
The set_data_aspect_ratio command is used to change the aspect ratio of the data. The ratio is specified as "a:b". If set_data_aspect_ratio is called without specifying a ratio, the data aspect ratio is disabled.
The get_data_aspect commands return the aspect ratio of the specified data.
- ChipsId - an optional ChipsId structure containing values to modify the currency state for the command
- ratio - the new aspect ratio for the data; options are "a:b" or blank.
For more information on aspect ratios, refer to "ahelp aspectratio".
Example
chips> z = np.arange(10)
chips> add_curve(z,z-4,[z*0.2,z*0.1])
chips> set_data_aspect_ratio("1:1");Plot a line, then set the data aspect ratio to "1:1".
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_xrelsize, 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_plot, set_plot_aspect_ratio, split, strip_chart, swap_object_positions

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