|AHELP for CIAO 4.5 ChIPS v1||
Set or retrieve the aspect ratio information of the plot.
set_plot_aspect_ratio([ChipsId], ratio) get_plot_aspect_height([ChipsId]) get_plot_aspect_ratio([ChipsId]) get_plot_aspect_width([ChipsId])
The set_plot_aspect_ratio command is used to change the aspect ratio of the plot.
The get_plot_aspect commands return the height, width, and aspect ratio of the specified plot.
- ChipsId - an optional ChipsId structure containing values to modify the currency state for the command
- ratio - the new aspect ratio for the plot; options are "a:b", "current", "fit" or blank.
"ratio" option values
- a:b - explicitly set the aspect ratio, e.g. "2:1"
- current - set the aspect ratio to the ratio of the margins currently defining the plot area
- fit - match the aspect ratio to the data ranges. This is NOT based on the limits the axes are currently displaying; it uses the full data range without any padding.
- (blank) - turn off the aspect ratio. Using this option expands the aspect ratio back to the area defined by the plot margins.
For more information on aspect ratios, refer to "ahelp aspectratio".
chips> add_plot() chips> set_plot_aspect_ratio("1:2") chips> print get_plot_aspect_height() 2.0 chips> print get_plot_aspect_width() 1.0 chips> print get_plot_aspect_ratio() 1:2
Create an blank plot area. Change the aspect ratio, then confirm the new ratio.
chips> add_curve("rprofile.fits[cols r,bright]") chips> set_plot_aspect_ratio("fit") chips> print get_plot_aspect_ratio() 185.0:3.9
Plot a radial profile, then set the aspect ratio of the plot to the data ranges. Finally, get the new plot aspect ratio.
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.
- 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_data_aspect_ratio, set_plot, split, strip_chart, swap_object_positions