mpl.colorbar

Colorbar toolkit with two classes and a function:

ColorbarBase
the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed.
Colorbar
the derived class for use with images or contour plots.
make_axes()
a function for resizing an axes and adding a second axes suitable for a colorbar

The colorbar() method uses make_axes() and Colorbar; the colorbar() function is a thin wrapper over colorbar().

Functions

colorbar_factory(cax, mappable, **kwargs) Creates a colorbar on the given axes for the given mappable.
make_axes(parents[, location, orientation, ...]) Resize and reposition parent axes, and return a child
make_axes_gridspec(parent, **kw) Resize and reposition a parent axes, and return a child axes suitable for a colorbar.

Classes

Colorbar(ax, mappable, **kw) This class connects a ColorbarBase to a ScalarMappable such as a AxesImage generated via imshow().
ColorbarBase(ax[, cmap, norm, alpha, ...]) Draw a colorbar in an existing axes.
ColorbarPatch(ax, mappable, **kw) A Colorbar which is created using Patch rather than the default pcolor().
xrange xrange(start, stop[, step]) -> xrange object
zip alias of izip