Public Member Functions | |
def | __getitem__ (self, index) |
def | __init__ (self, hists=None, title=None, xlabel=None, ylabel=None) |
def | __iter__ (self) |
def | __len__ (self) |
def | __setitem__ (self, index, value) |
def | add (self, hist, kwargs) |
def | max (self) |
def | min (self, threshold=None) |
def | scale (self, factor) |
def | stackmax (self) |
Public Attributes | |
hists | |
kwargs | |
title | |
xlabel | |
ylabel | |
A container to hold Hist objects for plotting together. When plotting, the title and the x and y labels of the last Hist added will be used unless specified otherwise in the constructor.
Definition at line 310 of file utilities.py.
def python.rootplot.utilities.HistStack.__init__ | ( | self, | |
hists = None , |
|||
title = None , |
|||
xlabel = None , |
|||
ylabel = None |
|||
) |
Definition at line 317 of file utilities.py.
def python.rootplot.utilities.HistStack.__getitem__ | ( | self, | |
index | |||
) |
Return indexth hist: x.__getitem__(y) <==> x[y]
Definition at line 326 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.__iter__ | ( | self | ) |
Iterate through hists in the stack: x.__iter__() <==> iter(x)
Definition at line 335 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.__len__ | ( | self | ) |
Return the number of hists in the stack: x.__len__() <==> len(x)
Definition at line 332 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.__setitem__ | ( | self, | |
index, | |||
value | |||
) |
Replace indexth hist with value: x.__setitem__(i, y) <==> x[i]=y
Definition at line 329 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.add | ( | self, | |
hist, | |||
kwargs | |||
) |
Add a Hist object to this stack. Any additional keyword arguments will be added to just this Hist when the stack is plotted.
Definition at line 365 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
Referenced by counter.Counter.register().
def python.rootplot.utilities.HistStack.max | ( | self | ) |
Return the value of the highest bin of all hists in the stack.
Definition at line 338 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
Referenced by python.rootplot.utilities.HistStack.stackmax().
Return the value of the lowest bin of all hists in the stack. If threshold is specified, only values above the threshold will be considered.
Definition at line 356 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.scale | ( | self, | |
factor | |||
) |
Scale all Hists by factor.
Definition at line 352 of file utilities.py.
References histograms.Histograms.hists, and python.rootplot.utilities.HistStack.hists.
def python.rootplot.utilities.HistStack.stackmax | ( | self | ) |
Return the value of the highest bin in the addition of all hists.
Definition at line 345 of file utilities.py.
References histograms.Histograms.hists, python.rootplot.utilities.HistStack.hists, python.rootplot.utilities.HistStack.max(), and edm.print().
python.rootplot.utilities.HistStack.hists |
Definition at line 318 of file utilities.py.
Referenced by python.rootplot.utilities.HistStack.__getitem__(), python.rootplot.utilities.HistStack.__iter__(), python.rootplot.utilities.HistStack.__len__(), python.rootplot.utilities.HistStack.__setitem__(), python.rootplot.utilities.HistStack.add(), python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), python.rootplot.root2matplotlib.HistStack.hist(), python.rootplot.root2matplotlib.HistStack.histstack(), python.rootplot.utilities.HistStack.max(), python.rootplot.utilities.HistStack.min(), python.rootplot.utilities.HistStack.scale(), python.rootplot.root2matplotlib.HistStack.show_titles(), and python.rootplot.utilities.HistStack.stackmax().
python.rootplot.utilities.HistStack.kwargs |
Definition at line 319 of file utilities.py.
Referenced by python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), python.rootplot.root2matplotlib.HistStack.hist(), and python.rootplot.root2matplotlib.HistStack.histstack().
python.rootplot.utilities.HistStack.title |
Definition at line 320 of file utilities.py.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), Formatter.SimpleHTMLFormatter.headers(), python.rootplot.root2matplotlib.HistStack.histstack(), and Vispa.Gui.PortWidget.PortWidget.name().
python.rootplot.utilities.HistStack.xlabel |
Definition at line 321 of file utilities.py.
Referenced by python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), and python.rootplot.root2matplotlib.HistStack.histstack().
python.rootplot.utilities.HistStack.ylabel |
Definition at line 322 of file utilities.py.
Referenced by python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), and python.rootplot.root2matplotlib.HistStack.histstack().