20double XtoPad(
double x);
21double YtoPad(
double x);
30 C =
new TCanvas(
"C",
"canvas", 1024, 640);
31 C->SetFillStyle(4000);
50 h =
new TH1F(
"histo",
"", 100, -5.0, 5.0);
51 h->FillRandom(
"gaus", 10000);
52 h->GetXaxis()->SetTitle(
"x axis");
53 h->GetYaxis()->SetTitle(
"y axis");
57 for (
Int_t i = 0; i <
Nx; i++) {
64 pad[i][
j]->SetFillStyle(4000);
65 pad[i][
j]->SetFrameFillStyle(4000);
75 hFrame->SetMinimum(0.0001);
76 hFrame->SetMaximum(1.2 *
h->GetMaximum());
79 hFrame->GetYaxis()->SetLabelFont(43);
80 hFrame->GetYaxis()->SetLabelSize(16);
81 hFrame->GetYaxis()->SetLabelOffset(0.02);
82 hFrame->GetYaxis()->SetTitleFont(43);
83 hFrame->GetYaxis()->SetTitleSize(16);
84 hFrame->GetYaxis()->SetTitleOffset(2);
86 hFrame->GetYaxis()->CenterTitle();
87 hFrame->GetYaxis()->SetNdivisions(505);
93 hFrame->GetXaxis()->SetLabelFont(43);
94 hFrame->GetXaxis()->SetLabelSize(16);
95 hFrame->GetXaxis()->SetLabelOffset(0.02);
96 hFrame->GetXaxis()->SetTitleFont(43);
97 hFrame->GetXaxis()->SetTitleSize(16);
98 hFrame->GetXaxis()->SetTitleOffset(1);
99 hFrame->GetXaxis()->CenterTitle();
100 hFrame->GetXaxis()->SetNdivisions(505);
109 text.SetTextAlign(31);
110 text.SetTextFont(43);
111 text.SetTextSize(10);
112 text.DrawTextNDC(XtoPad(0.9), YtoPad(0.8),
gPad->GetName());
134 for (
Int_t i = 0; i <
Nx; i++) {
142 }
else if (i ==
Nx - 1) {
164 }
else if (
j ==
Ny - 1) {
190 pad->SetFrameBorderMode(0);
191 pad->SetBorderMode(0);
192 pad->SetBorderSize(0);
199double XtoPad(
double x)
204 double lm =
gPad->GetLeftMargin();
205 double rm =
gPad->GetRightMargin();
210double YtoPad(
double y)
215 double tm =
gPad->GetTopMargin();
216 double bm =
gPad->GetBottomMargin();
218 return (
y * fh +
bm *
ph) /
ph;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char text
R__EXTERN TStyle * gStyle
1-D histogram with a float per channel (see TH1 documentation)
The most important graphics class in the ROOT system.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Base class for several text objects.
constexpr Double_t C()
Velocity of light in .