rootpy.plotting.HistStack¶
-
class
rootpy.plotting.
HistStack
(hists=None, name=None, title=None, stacked=True, **kwargs)[source]¶ -
Draw
(*args, **kwargs)¶ Parameters: args : positional arguments
Positional arguments are passed directly to ROOT’s Draw
kwargs : keyword arguments
If keyword arguments are present, then a clone is drawn instead with DrawCopy, where the name, title, and style attributes are taken from
kwargs
.Returns: If
kwargs
is not empty and a clone is drawn, then the clone isreturned, otherwise None is returned.
-
DrawCopy
(*args, **kwargs)¶ Parameters: args : positional arguments
Positional arguments are passed directly to ROOT’s Draw
kwargs : keyword arguments
The name, title, and style attributes of the clone are taken from
kwargs
.Returns: The clone.
-
GetFillColor
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
GetFillStyle
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
GetLineColor
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
GetLineStyle
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
GetMarkerColor
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
GetMarkerStyle
(mode=None)¶ mode may be ‘root’, ‘mpl’, or None to return the ROOT, matplotlib, or input value.
-
SetColor
(color)¶ color may be any color understood by ROOT or matplotlib.
Set all color attributes with one method call.
For full documentation of accepted color arguments, see
rootpy.plotting.style.Color
.
-
SetFillColor
(color)¶ color may be any color understood by ROOT or matplotlib.
For full documentation of accepted color arguments, see
rootpy.plotting.style.Color
.
-
SetFillStyle
(style)¶ style may be any fill style understood by ROOT or matplotlib.
For full documentation of accepted style arguments, see
rootpy.plotting.style.FillStyle
.
-
SetLineColor
(color)¶ color may be any color understood by ROOT or matplotlib.
For full documentation of accepted color arguments, see
rootpy.plotting.style.Color
.
-
SetLineStyle
(style)¶ style may be any line style understood by ROOT or matplotlib.
For full documentation of accepted style arguments, see
rootpy.plotting.style.LineStyle
.
-
SetMarkerColor
(color)¶ color may be any color understood by ROOT or matplotlib.
For full documentation of accepted color arguments, see
rootpy.plotting.style.Color
.
-
SetMarkerStyle
(style)¶ style may be any marker style understood by ROOT or matplotlib.
For full documentation of accepted style arguments, see
rootpy.plotting.style.MarkerStyle
.
-
decorate
(other=None, **kwargs)¶ Apply style options to a Plottable object.
Returns a reference to self.
-