#include <NicePlot.h>
|
static void | FormatHisto (TH1 *h, const Style *s) |
|
static void | FormatPad (TPad *pad, bool grid=true, bool logx=false, bool logy=false) |
|
static void | SavePlot (const char *name, const char *dir) |
|
Definition at line 9 of file NicePlot.h.
◆ Styles()
◆ FormatHisto()
void Styles::FormatHisto |
( |
TH1 * |
h, |
|
|
const Style * |
s |
|
) |
| |
|
static |
Definition at line 54 of file NicePlot.cc.
56 h->SetTitle(
"CMS Preliminary");
58 h->GetYaxis()->SetTitleSize(0.06);
59 h->GetYaxis()->SetTitleOffset(1.2);
60 h->GetXaxis()->SetTitleSize(0.06);
61 h->GetYaxis()->SetLabelSize(0.045);
62 h->GetXaxis()->SetLabelSize(0.045);
64 h->SetLineWidth(
s->GetLineWidth());
65 h->SetLineColor(
s->GetLineColor());
66 h->SetFillStyle(
s->GetFillStyle());
67 h->SetFillColor(
s->GetFillColor());
References alignCSCRings::s.
Referenced by Comparator::Draw().
◆ FormatPad()
void Styles::FormatPad |
( |
TPad * |
pad, |
|
|
bool |
grid = true , |
|
|
bool |
logx = false , |
|
|
bool |
logy = false |
|
) |
| |
|
static |
Definition at line 70 of file NicePlot.cc.
79 pad->SetBottomMargin(0.14);
80 pad->SetLeftMargin(0.15);
81 pad->SetRightMargin(0.05);
References getRunAppsInfo::grid.
◆ SavePlot()
void Styles::SavePlot |
( |
const char * |
name, |
|
|
const char * |
dir |
|
) |
| |
|
static |
◆ s1
◆ s2
◆ sback
◆ sg1
◆ sgr1
◆ sgr2
◆ spblue
◆ spred