scisalt.matplotlib.hist2d

scisalt.matplotlib.hist2d(x, y, bins=10, labels=None, aspect='auto', plot=True, fig=None, ax=None, interpolation='none', cbar=True, **kwargs)[source]

Creates a 2-D histogram of data x, y with bins, labels = [title, xlabel, ylabel], aspect ration aspect. Attempts to use axis ax first, then the current axis of fig, then the last axis, to use an already-created window.

Plotting (plot) is on by default, setting false doesn’t attempt to create a figure.

interpolation sets the interpolation type of matplotlib.axis.imshow.

Returns a handle and extent as h, extent