rootpy.plotting.root2matplotlib.imshow

rootpy.plotting.root2matplotlib.imshow(h, axes=None, colorbar=False, **kwargs)[source]

Draw a matplotlib imshow plot from a 2D ROOT histogram.

Parameters:

h : Hist2D

A rootpy Hist2D

axes : matplotlib Axes instance, optional (default=None)

The axes to plot on. If None then use the global current axes.

colorbar : Boolean, optional (default=False)

If True, include a colorbar in the produced plot

kwargs : additional keyword arguments, optional

Additional keyword arguments are passed directly to matplotlib’s imshow function.

Returns:

Returns the value from matplotlib’s imshow function.