rootpy.plotting.root2matplotlib.contour¶
-
rootpy.plotting.root2matplotlib.
contour
(h, axes=None, zoom=None, label_contour=False, **kwargs)[source]¶ Draw a matplotlib contour 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.
zoom : float or sequence, optional (default=None)
The zoom factor along the axes. If a float, zoom is the same for each axis. If a sequence, zoom should contain one value for each axis. The histogram is zoomed using a cubic spline interpolation to create smooth contours.
label_contour : Boolean, optional (default=False)
If True, labels are printed on the contour lines.
kwargs : additional keyword arguments, optional
Additional keyword arguments are passed directly to matplotlib’s contour function.
Returns: Returns the value from matplotlib’s contour function.