Public Member Functions | |
def | __init__ (self, xmin, ymin, xmax, ymax, lineheight=0.04, fillColor=ROOT.kWhite, transparent=True, kwargs) |
def | addText (self, text) |
def | Draw (self, options="") |
def | move (self, dx=0, dy=0, dw=0, dh=0) |
def | width (self) |
Private Attributes | |
_currenty | |
_fillColor | |
_lineheight | |
_pave | |
_textArgs | |
_texts | |
_transparent | |
_xmax | |
_xmin | |
_ymax | |
_ymin | |
Class for drawing text and a background box.
Definition at line 1402 of file plotting.py.
def plotting.PlotTextBox.__init__ | ( | self, | |
xmin, | |||
ymin, | |||
xmax, | |||
ymax, | |||
lineheight = 0.04 , |
|||
fillColor = ROOT.kWhite , |
|||
transparent = True , |
|||
kwargs | |||
) |
Constructor Arguments: xmin -- X min coordinate of the box (NDC) ymin -- Y min coordinate of the box (NDC) (if None, deduced automatically) xmax -- X max coordinate of the box (NDC) ymax -- Y max coordinate of the box (NDC) lineheight -- Line height fillColor -- Fill color of the box transparent -- Should the box be transparent? (in practive the TPave is not created) Keyword arguments are forwarded to constructor of PlotText
Definition at line 1404 of file plotting.py.
def plotting.PlotTextBox.addText | ( | self, | |
text | |||
) |
Add text to current position
Definition at line 1432 of file plotting.py.
References plotting.PlotTextBox._currenty, plotting.PlotTextBox._lineheight, plotting.PlotTextBox._textArgs, MEGeom._xmin, HistoParams< T >._xmin, HistoParams< TH2F >._xmin, HistoParams< TProfile2D >._xmin, and plotting.PlotTextBox._xmin.
def plotting.PlotTextBox.Draw | ( | self, | |
options = "" |
|||
) |
Draw the box and the text to the current TPad. Arguments: options -- Forwarded to ROOT.TPave.Draw(), and the Draw() of the contained objects
Definition at line 1466 of file plotting.py.
References plotting.PlotTextBox._transparent, fftjetcms::LookupTable2d.ymin(), PixelClusterizerBase::AccretionCluster.ymin, Exhume::Event.ymin, cscdqm::AddressBox.ymin, AccretionCluster.ymin, and TrackerMap.ymin.
def plotting.PlotTextBox.move | ( | self, | |
dx = 0 , |
|||
dy = 0 , |
|||
dw = 0 , |
|||
dh = 0 |
|||
) |
Move the box and the contained text objects Arguments: dx -- Movement in x (positive is to right) dy -- Movement in y (positive is to up) dw -- Increment of width (negative to decrease width) dh -- Increment of height (negative to decrease height) dx and dy affect to both box and text objects, dw and dh affect the box only.
Definition at line 1440 of file plotting.py.
References plotting.PlotTextBox._texts, MEGeom._xmax, HistoParams< T >._xmax, HistoParams< TH2F >._xmax, HistoParams< TProfile2D >._xmax, plotting.PlotTextBox._xmax, MEGeom._xmin, HistoParams< T >._xmin, HistoParams< TH2F >._xmin, HistoParams< TProfile2D >._xmin, plotting.PlotTextBox._xmin, MEGeom._ymax, HistoParams< T >._ymax, HistoParams< TH2F >._ymax, HistoParams< TProfile2D >._ymax, plotting.PlotTextBox._ymax, MEGeom._ymin, HistoParams< T >._ymin, HistoParams< TH2F >._ymin, HistoParams< TProfile2D >._ymin, and plotting.PlotTextBox._ymin.
Referenced by Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().
def plotting.PlotTextBox.width | ( | self | ) |
Definition at line 1437 of file plotting.py.
References MEGeom._xmax, HistoParams< T >._xmax, HistoParams< TH2F >._xmax, HistoParams< TProfile2D >._xmax, plotting.PlotTextBox._xmax, MEGeom._xmin, HistoParams< T >._xmin, HistoParams< TH2F >._xmin, HistoParams< TProfile2D >._xmin, and plotting.PlotTextBox._xmin.
Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Views.PropertyView.PropertyView.resizeEvent(), Vispa.Views.PropertyView.PropertyView.sectionResized(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().
|
private |
Definition at line 1430 of file plotting.py.
Referenced by plotting.PlotTextBox.addText().
|
private |
Definition at line 1424 of file plotting.py.
|
private |
Definition at line 1423 of file plotting.py.
Referenced by plotting.PlotTextBox.addText().
|
private |
Definition at line 1476 of file plotting.py.
|
private |
Definition at line 1427 of file plotting.py.
Referenced by plotting.PlotTextBox.addText().
|
private |
Definition at line 1426 of file plotting.py.
Referenced by plotting.PlotTextBox.move().
|
private |
Definition at line 1425 of file plotting.py.
Referenced by plotting.PlotTextBox.Draw().
|
private |
Definition at line 1420 of file plotting.py.
Referenced by plotting.PlotTextBox.move(), and plotting.PlotTextBox.width().
|
private |
Definition at line 1419 of file plotting.py.
Referenced by plotting.PlotTextBox.addText(), plotting.PlotTextBox.move(), and plotting.PlotTextBox.width().
|
private |
Definition at line 1422 of file plotting.py.
Referenced by plotting.PlotTextBox.move().
|
private |
Definition at line 1421 of file plotting.py.
Referenced by plotting.PlotTextBox.move().