#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()
Definition at line 9 of file NicePlot.cc.
10 gROOT->SetStyle(
"Plain");
11 gStyle->SetPalette(1);
12 gStyle->SetHistMinimumZero(kTRUE);
26 sg1->SetMarkerColor(4);
29 sg1->SetMarkerStyle(21);
32 sback->SetFillStyle(1001);
33 sback->SetFillColor(5);
36 spred->SetLineColor(2);
37 spred->SetLineWidth(2);
38 spred->SetFillStyle(1001);
39 spred->SetFillColor(kRed - 8);
46 sgr1->SetLineWidth(1);
47 sgr1->SetLineColor(1);
50 sgr2->SetLineWidth(1);
51 sgr2->SetLineColor(1);
References hlx_dqm_sourceclient_cfi::Style.
◆ 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