![]() |
ATLAS Offline Software
|
Classes | |
| class | MyCanvas |
| class | PlotLibrary |
| class | StyleFactory |
Functions | |
| protect (obj) | |
| drawAxisFrame (xmin, xmax, ymin, ymax, title='', xTitleOffset=None, yTitleOffset=None, doPlot=True, protectFrame=True) | |
| drawHorizontalBand (xmin, xmax, y, ywidth, color=33, protectBand=True, centralLine=False) | |
| drawText (x=0.74, y=0.87, dy=0.06, text='', font=62, color=1, align=11, linesep=';') | |
| drawLegend (x1, y1, x2, y2, legendList=[], fillColor=0, lineColor=0, textSize=None, protectLegend=True) | |
| moveStats (h, dx, dy, xw=0, yw=0, label='') | |
| atlasLabel (x, y, isPreliminary=False, color=1, offset=0.115, isForApproval=False, energy=8, customstring="", size=0.05) | |
| atlasStyle (protectStyle=True) | |
| setStyle (style=None) | |
Variables | |
| str | __author__ = 'Juerg Beringer' |
| str | __version__ = '$Id: ROOTUtils.py 759047 2016-07-01 00:45:13Z beringer $' |
| list | protectedObjectList = [] |
| dict | myCanvasSizes |
Miscellaneous utilities for PyROOT.
| ROOTUtils.atlasLabel | ( | x, | |
| y, | |||
| isPreliminary = False, | |||
| color = 1, | |||
| offset = 0.115, | |||
| isForApproval = False, | |||
| energy = 8, | |||
| customstring = "", | |||
| size = 0.05 ) |
Definition at line 303 of file roofit/ROOTUtils.py.
| ROOTUtils.atlasStyle | ( | protectStyle = True | ) |
Definition at line 338 of file roofit/ROOTUtils.py.
| ROOTUtils.drawAxisFrame | ( | xmin, | |
| xmax, | |||
| ymin, | |||
| ymax, | |||
| title = '', | |||
| xTitleOffset = None, | |||
| yTitleOffset = None, | |||
| doPlot = True, | |||
| protectFrame = True ) |
Definition at line 213 of file roofit/ROOTUtils.py.
| ROOTUtils.drawHorizontalBand | ( | xmin, | |
| xmax, | |||
| y, | |||
| ywidth, | |||
| color = 33, | |||
| protectBand = True, | |||
| centralLine = False ) |
Draw a horizontal band of width +-ywidth. Nice colors are 19 and 33.
Definition at line 227 of file roofit/ROOTUtils.py.
| ROOTUtils.drawLegend | ( | x1, | |
| y1, | |||
| x2, | |||
| y2, | |||
| legendList = [], | |||
| fillColor = 0, | |||
| lineColor = 0, | |||
| textSize = None, | |||
| protectLegend = True ) |
Draw a legend with one or more entries. legendList is a list of lists, where each inner list defines the object, text and option of a legend entry. NOTE: Must store returned TLegend, otherwise legend will disappear!
Definition at line 259 of file roofit/ROOTUtils.py.
| ROOTUtils.drawText | ( | x = 0.74, | |
| y = 0.87, | |||
| dy = 0.06, | |||
| text = '', | |||
| font = 62, | |||
| color = 1, | |||
| align = 11, | |||
| linesep = ';' ) |
Draw a variable number of lines of text.
Definition at line 243 of file roofit/ROOTUtils.py.
| ROOTUtils.moveStats | ( | h, | |
| dx, | |||
| dy, | |||
| xw = 0, | |||
| yw = 0, | |||
| label = '' ) |
Definition at line 284 of file roofit/ROOTUtils.py.
| ROOTUtils.protect | ( | obj | ) |
Utility function to prevent ROOT objects from being garbage-collected, (thus disappearing from plots) when they go out of scope.
Definition at line 17 of file roofit/ROOTUtils.py.
| ROOTUtils.setStyle | ( | style = None | ) |
Definition at line 413 of file roofit/ROOTUtils.py.
|
private |
Definition at line 7 of file roofit/ROOTUtils.py.
|
private |
Definition at line 8 of file roofit/ROOTUtils.py.
| dict ROOTUtils.myCanvasSizes |
Definition at line 25 of file roofit/ROOTUtils.py.
| list ROOTUtils.protectedObjectList = [] |
Definition at line 15 of file roofit/ROOTUtils.py.