Chandra X-Ray Observatory
Skip to the navigation links
Last modified: 13 April 2018

Can I change the spacing between plots?

If you have created a grid of plots using either strip_chart or split then you can use the adjust_grid_gaps set of commands to change the horizontal or vertical spacing between the plots.

The spacing is measured in the frame-normalized coordinate system, so 0.1 represents ten percent of the width or height of the frame containing the plots.

Change the vertical space between plots

chips> adjust_grid_ygap(0.1)

Change the horizontal space between plots

chips> adjust_grid_xgap(0.1)

Change both horizontal and vertical spaces between plots

chips> adjust_grid_gaps(0.05, 0.1)

The following visualization shows the effect of these three commands on the grid of plots created by a split(3,3) call.

[The top-left grid has no spaces between plots; the top-right grid has space between the rows; the bottom-left has space between columns, and the bottom-right grid has spaces between columns and grids]

Last modified: 13 April 2018
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.