Construct a multiple axes plot object, with or without a colorbar, into which multiple plots may be inserted.
This will create a set of matplotlib.axes.Axes, all lined up into a grid, which are then returned to the user and which can be used to plot multiple plots on a single figure.
Parameters : | nx : int
ny : int
colorbar : {‘vertical’, ‘horizontal’, None}, optional
|
---|---|
Returns : | fig : `matplotlib.figure.Figure
tr : list of list of matplotlib.axes.Axes objects
cbars : list of matplotlib.axes.Axes objects
|
Notes
This is a simple implementation for a common use case. Viewing the source can be instructure, and is encouraged to see how to generate more complicated or more specific sets of multiplots for your own purposes.