|
MINT2
|
#include <Plotter.h>
Public Member Functions | |
| int | getColor (int i) |
| void | setColor (int i, int color) |
| void | usePresetColours (bool val=true) |
| void | allImageFormats (bool val=true) |
| void | setHistogramOwnership (bool i=1) |
| void | setObjectOwnership (bool i=1) |
| Plotter (TString canvasName, double width, double height) | |
| Plotter (const Plotter &other) | |
| virtual void | plot (TString plotDirectory, TString plotOptions="", TPad *pad=0, double scaleFactor=1.0)=0 |
| Draw the histograms and objects onto the canvas. More... | |
| void | add (TObject *histogram) |
| void | addDot (double xpos, double ypos, double size, int colour=1, TString shape="circle", double sizeY=0.0) |
| void | logX (bool log=1) |
| void | logY (bool log=1) |
| void | logZ (bool log=1) |
| void | addObject (TObject *obj) |
| int | getNumObjects () |
| void | setImageFormat (TString format) |
| TPad * | getCanvas () |
| void | scaleTextSize (double scale) |
| void | scaleAxisTitleSize (double scale) |
| void | scaleAxisTitleOffset (double scale) |
| void | setXAxisLabelSize (double val) |
| void | setYAxisLabelSize (double val) |
| void | setXAxisTitleSize (double val) |
| void | setYAxisTitleSize (double val) |
| void | setXAxisLabelOffset (double val) |
| void | setYAxisLabelOffset (double val) |
| void | setXAxisTitleOffset (double val) |
| void | setYAxisTitleOffset (double val) |
| void | setXAxisTickLength (double val) |
| void | setYAxisTickLength (double val) |
| void | setPropertiesFromTH1 (TH1 *hist) |
| void | setMin (double min) |
| void | setMax (double max) |
| void | setBMargin (double val) |
| void | setLMargin (double val) |
| void | setRMargin (double val) |
| void | setTMargin (double val) |
| virtual | ~Plotter () |
Static Public Attributes | |
| static TString | s_imageformat = ".eps" |
| static TString | s_imageformat2 = "" |
| static TString | s_legend_position = "RightTop" |
| static int | s_plotterCount = 0 |
| static double | s_forcedMax = -999.999 |
| static double | s_forcedMin = -999.999 |
Protected Member Functions | |
| virtual void | setCanvasDefaults (TPad *pad) |
Protected Attributes | |
| TPad * | _canvas |
| TLegend * | _legend |
| double | _forcedMax |
| double | _forcedMin |
| std::vector< TObject * > | _objToPlot |
| std::vector< TObject * > | _histograms |
| std::vector< int > | _colours |
| double | _lMargin |
| double | _rMargin |
| double | _tMargin |
| double | _bMargin |
| double | _xAxisTitleOffset |
| double | _yAxisTitleOffset |
| double | _xAxisLabelOffset |
| double | _yAxisLabelOffset |
| double | _xAxisTickLength |
| double | _yAxisTickLength |
| double | _xAxisLabelSize |
| double | _yAxisLabelSize |
| double | _xAxisTitleSize |
| double | _yAxisTitleSize |
| bool | _histogramOwnership |
| bool | _objectOwnership |
| bool | _usePresetColours |
| bool | _allImageFormats |
HyperPlot, Author: Sam Harnew, sam.harnew@gmail.com , Date: Dec 2015
Base class for all RootHistogram plotters - these just make plotting root histograms a little easier.
| Plotter::Plotter | ( | TString | canvasName, |
| double | width, | ||
| double | height | ||
| ) |
| Plotter::Plotter | ( | const Plotter & | other | ) |
Copy another plotter - this will hold the same pointers, so make sure that the new plotter doesn't own any of them
Definition at line 61 of file Plotter.cpp.
|
virtual |
Definition at line 190 of file Plotter.cpp.
| void Plotter::add | ( | TObject * | histogram | ) |
| void Plotter::addDot | ( | double | xpos, |
| double | ypos, | ||
| double | size, | ||
| int | colour = 1, |
||
| TString | shape = "circle", |
||
| double | sizeY = 0.0 |
||
| ) |
add a dot to some point in the canvas
The TString 'shape' can be
Definition at line 134 of file Plotter.cpp.
| void Plotter::addObject | ( | TObject * | obj | ) |
Add an object to the Plotter (e.g. TMarker, TBox...). By default, the plotter takes ownership of the object
Definition at line 168 of file Plotter.cpp.
|
inline |
| int Plotter::getColor | ( | int | i | ) |
| int Plotter::getNumObjects | ( | ) |
| void Plotter::logX | ( | bool | log = 1 | ) |
use a log scale for the x-axis
Definition at line 152 of file Plotter.cpp.
| void Plotter::logY | ( | bool | log = 1 | ) |
use a log scale for the y-axis
Definition at line 157 of file Plotter.cpp.
| void Plotter::logZ | ( | bool | log = 1 | ) |
use a log scale for the z-axis
Definition at line 162 of file Plotter.cpp.
|
pure virtual |
Draw the histograms and objects onto the canvas.
Implemented in RootPlotter.
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
| void Plotter::setColor | ( | int | i, |
| int | color | ||
| ) |
|
inline |
| void Plotter::setImageFormat | ( | TString | format | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void Plotter::setPropertiesFromTH1 | ( | TH1 * | hist | ) |
set _xAxisTitleOffset, _yAxisTitleOffset, _xAxisLabelOffset, _yAxisLabelOffset, _xAxisTickLength , _yAxisTickLength , _xAxisLabelSize , _yAxisLabelSize , _xAxisTitleSize , _yAxisTitleSize from the histogram given.
Destructor - delete all the histograms and objects that I own.
Definition at line 172 of file Plotter.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15