Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: 14 December 2016

Can I have a grid of m by n plots?


The strip_chart command, described in the Multiple plots with a common axis entry, creates a single column or row of plots with a common axis. The split command is used to create an n by m grid of plots.

chips> split(3)

creates one column of three plots with no gaps between the plots.

chips> split(2, 3)

creates two columns of three rows, again with no gaps between the plots.

chips> split(2, 2, 0.1)

creates a two by two arrangement but this time adds a vertical gap between the two rows (but no gap between the two columns).

chips> split(2, 2, 0, 0.1)

is similar but has a gap between the columns rather than rows.

chips> split(2, 2, 0.1, 0.1)

creates the grid of plots with both horizontal and vertical spaces.

The arrangement of a two-by-two grid is shown in the following image:

[The four versions of split(2,2,a,b) are shown, with a and b being 0 or 0.1]

Differences with strip_chart()

The main differences to the strip_chart command are:



Last modified: 14 December 2016
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:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.