Contains useful set of functions that simplify work with ROOT's TCanvas objects. More...
#include <string>#include <iostream>#include "TH1.h"#include "TH2.h"#include "TCanvas.h"Go to the source code of this file.
Namespaces | |
| namespace | ROOTTools |
Functions | |
| template<typename T> | |
| void | ROOTTools::DrawFrame (T *hist, const std::string &title, const std::string &xTitle, const std::string &yTitle, const double xTitleOffset=1., const double yTitleOffset=1.5, const double xTitleSize=0.05, const double yTitleSize=0.05, const bool drawOppositeAxis=true, const bool drawContents=true) |
| void | ROOTTools::DrawFrame (const double xMin, const double yMin, const double xMax, const double yMax, const std::string &title, const std::string &xTitle, const std::string &yTitle, const double xTitleOffset=1., const double yTitleOffset=1.5, const double xTitleSize=0.05, const double yTitleSize=0.05, const bool drawOppositeAxis=true) |
| void | ROOTTools::PrintCanvas (TCanvas *canv, const std::string &outputFileNameNoExt, const bool printPng=true, const bool printPdf=true, const bool compressPdf=true, const bool parallelCompression=true) |
| Saves TCanvas in .pdf format and additionaly in .png format if specified. Also makes canvas background transparent. Either printPng or printPdf must be true, else error will be printed. | |
Contains useful set of functions that simplify work with ROOT's TCanvas objects.
In order to use these functions libTCanvasTools.so must be loaded
This file is a part of a project ROOTTools (https://github.com/Sergeyir/ROOTTools).