yt.raven.get_multi_plot

yt.raven.get_multi_plot(nx, ny, colorbar='vertical', bw=4, dpi=300)

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

Number of axes to create along the x-direction

ny : int

Number of axes to create along the y-direction

colorbar : {‘vertical’, ‘horizontal’, None}, optional

Should Axes objects for colorbars be allocated, and if so, should they correspond to the horizontal or vertical set of axes?

Returns :

fig : `matplotlib.figure.Figure

The figure created inside which the axes reside

tr : list of list of matplotlib.axes.Axes objects

This is a list, where the inner list is along the x-axis and the outer is along the y-axis

cbars : list of matplotlib.axes.Axes objects

Each of these is an axes onto which a colorbar can be placed.

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.

Previous topic

yt.raven.PlotInterface.get_slice

Next topic

List of All Fields

This Page