rootpy.plotting.utils.draw¶
-
rootpy.plotting.utils.
draw
(plottables, pad=None, same=False, xaxis=None, yaxis=None, xtitle=None, ytitle=None, xlimits=None, ylimits=None, xdivisions=None, ydivisions=None, logx=False, logy=False, **kwargs)[source]¶ Draw a list of histograms, stacks, and/or graphs.
Parameters: plottables : Hist, Graph, HistStack, or list of such objects
List of objects to draw.
pad : Pad or Canvas, optional (default=None)
The pad to draw onto. If None then use the current global pad.
same : bool, optional (default=False)
If True then use ‘SAME’ draw option for all objects instead of all but the first. Use this option if you are drawing onto a pad that already holds drawn objects.
xaxis : TAxis, optional (default=None)
Use this x-axis or use the x-axis of the first plottable if None.
yaxis : TAxis, optional (default=None)
Use this y-axis or use the y-axis of the first plottable if None.
xtitle : str, optional (default=None)
Set the x-axis title.
ytitle : str, optional (default=None)
Set the y-axis title.
xlimits : tuple, optional (default=None)
Set the x-axis limits with a 2-tuple of (min, max)
ylimits : tuple, optional (default=None)
Set the y-axis limits with a 2-tuple of (min, max)
xdivisions : int, optional (default=None)
Set the number of divisions for the x-axis
ydivisions : int, optional (default=None)
Set the number of divisions for the y-axis
logx : bool, optional (default=False)
If True, then set the x-axis to log scale.
logy : bool, optional (default=False)
If True, then set the y-axis to log scale.
kwargs : dict
All extra arguments are passed to get_limits when determining the axis limits.
Returns: (xaxis, yaxis), (xmin, xmax, ymin, ymax) : tuple
The axes and axes bounds.
See also