HyperPlot
v1
Bin and visualise multidimensional datasets
|
HyperPlot, Author: Sam Harnew, sam.h , Date: Dec 2015 arne w@gma il.c om
Class to make plotting 2D root histograms a little easier.
Definition at line 20 of file RootPlotter2D.h.
#include <RootPlotter2D.h>
Public Member Functions | |
virtual double | getGlobalMax () |
virtual double | getGlobalMin () |
RootPlotter2D (TH1 *histogram, double width=350, double height=300) | |
void | addVerticalLine (double xpos, int style=1) |
void | addHorizontalLine (double ypos, int style=1) |
void | addVerticalBox (double xmin, double xmax, int fillColour, int fillstyle) |
virtual | ~RootPlotter2D () |
Public Member Functions inherited from RootPlotter | |
void | setXaxisName (TString name) |
void | setYaxisName (TString name) |
RootPlotter (TH1 *histogram, double width=300, double height=200) | |
TString & | drawOptions (int i) |
TString & | objDrawOptions (int i) |
void | plotStacked (TPad *pad, double scaleFactor) |
void | plotSame (TPad *pad, TString plotOptions, double scaleFactor=1.0) |
virtual void | plot (TString plotDirectory, TString plotOptions="", TPad *pad=0, double scaleFactor=1.0) |
void | addText (TString text, double x, double y, int alignh=1, int alignv=2, double size=0.06, int ndc=true) |
void | drawLegend () |
virtual | ~RootPlotter () |
Public Member Functions inherited from Plotter | |
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) | |
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) |
Protected Member Functions | |
virtual void | setHistogramStyle (TH1 *histogram, bool setMinMax) |
Protected Member Functions inherited from RootPlotter | |
TH1 * | getHistogram (int i) |
Protected Member Functions inherited from Plotter | |
virtual void | setCanvasDefaults (TPad *pad) |
Additional Inherited Members | |
Static Public Attributes inherited from Plotter | |
static TString | s_imageformat = ".pdf" |
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 Attributes inherited from RootPlotter | |
TString | _xAxisName |
TString | _yAxisName |
std::vector< TString > | _drawOptions |
std::vector< TString > | _objDrawOptions |
Protected Attributes inherited from Plotter | |
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 |
RootPlotter2D::RootPlotter2D | ( | TH1 * | histogram, |
double | width = 350 , |
||
double | height = 300 |
||
) |
Construct a RootPlotter with one histogram on a canvas with specified width and height
Definition at line 5 of file RootPlotter2D.cpp.
|
virtual |
destructor
Definition at line 120 of file RootPlotter2D.cpp.
void RootPlotter2D::addHorizontalLine | ( | double | ypos, |
int | style = 1 |
||
) |
Add a line that spans the canvas in the Horizontal direction, and is at ymin in the horizontal direction
Definition at line 110 of file RootPlotter2D.cpp.
void RootPlotter2D::addVerticalBox | ( | double | xmin, |
double | xmax, | ||
int | fillColour, | ||
int | fillstyle | ||
) |
Add a box that spans the canvas in the vertical direction, and goes from xmin to xmax in the horizontal direction
Definition at line 50 of file RootPlotter2D.cpp.
void RootPlotter2D::addVerticalLine | ( | double | xpos, |
int | style = 1 |
||
) |
Add a line that spans the canvas in the vertical direction, and is at xmin in the horizontal direction
Definition at line 98 of file RootPlotter2D.cpp.
|
virtual |
find the maximum value accross all histogrmas
Reimplemented from RootPlotter.
Definition at line 80 of file RootPlotter2D.cpp.
|
virtual |
find the minimum value accross all histogrmas
Reimplemented from RootPlotter.
Definition at line 62 of file RootPlotter2D.cpp.
|
protectedvirtual |