Toolkits

Toolkits are collections of application-specific functions that extend Matplotlib.

mplot3d

mpl_toolkits.mplot3d provides some basic 3D plotting (scatter, surf, line, mesh) tools. Not the fastest or most feature complete 3D library out there, but it ships with Matplotlib and thus may be a lighter weight solution for some use cases. Check out the mplot3d tutorial for more information.

../../_images/sphx_glr_contourf3d_2_001.png

mpl_toolkits.axes_grid1

mpl_toolkits.axes_grid1 provides a framework of helper classes to adjust the positioning of multiple fixed-aspect Axes (e.g., displaying images). It can be contrasted with the aspect property of Matplotlib Axes, which adjusts the position of a single Axes.

See Overview of mpl_toolkits.axes_grid1 for a guide on the usage of axes_grid1.

../../_images/sphx_glr_demo_axes_grid_001.png

The submodules of the axes_grid1 API are:

axes_grid1.anchored_artists

axes_grid1.axes_divider

Helper classes to adjust the positions of multiple axes at drawing time.

axes_grid1.axes_grid

axes_grid1.axes_rgb

axes_grid1.axes_size

Provides classes of simple units that will be used with AxesDivider class (or others) to determine the size of each axes.

axes_grid1.inset_locator

A collection of functions and objects for creating or placing inset axes.

axes_grid1.mpl_axes

axes_grid1.parasite_axes

mpl_toolkits.axisartist

The axisartist namespace provides a derived Axes implementation (mpl_toolkits.axisartist.Axes), designed to support curvilinear grids. The biggest difference is that the artists that are responsible for drawing axis lines, ticks, ticklabels, and axis labels are separated out from Matplotlib's Axis class.

You can find a tutorial describing usage of axisartist at the axisartist user guide.

../../_images/sphx_glr_demo_curvelinear_grid_001.png

The submodules of the axisartist API are:

axisartist.angle_helper

axisartist.axes_divider

axisartist.axes_grid

axisartist.axes_rgb

axisartist.axis_artist

The axis_artist module implements custom artists to draw axis elements (axis lines and labels, tick lines and labels, grid lines).

axisartist.axisline_style

axisartist.axislines

Axislines includes modified implementation of the Axes class.

axisartist.clip_path

axisartist.floating_axes

An experimental support for curvilinear grid.

axisartist.grid_finder

axisartist.grid_helper_curvelinear

An experimental support for curvilinear grid.

axisartist.parasite_axes

mpl_toolkits.axes_grid

Note

AxesGrid has been a part of matplotlib since v 0.99. Originally, the toolkit used the axes_grid namespace. In more recent versions, the toolkit has been split into axes_grid1 and axisartist. While axes_grid is maintained for the backward compatibility, use of axes_grid1 and axisartist is recommended. For the documentation on axes_grid, see the previous version of the docs.