21double XtoPad(
double x);
22double YtoPad(
double x);
30 C =
new TCanvas(
"C",
"canvas",1024,640);
31 C->SetFillStyle(4000);
49 h =
new TH1F(
"histo",
"",100,-5.0,5.0);
50 h->FillRandom(
"gaus",10000);
51 h->GetXaxis()->SetTitle(
"x axis");
52 h->GetYaxis()->SetTitle(
"y axis");
56 for (
Int_t i = 0; i <
Nx; i++) {
63 pad[i][
j]->SetFillStyle(4000);
64 pad[i][
j]->SetFrameFillStyle(4000);
74 hFrame->SetMinimum(0.0001);
75 hFrame->SetMaximum(1.2*
h->GetMaximum());
78 hFrame->GetYaxis()->SetLabelFont(43);
79 hFrame->GetYaxis()->SetLabelSize(16);
80 hFrame->GetYaxis()->SetLabelOffset(0.02);
81 hFrame->GetYaxis()->SetTitleFont(43);
82 hFrame->GetYaxis()->SetTitleSize(16);
83 hFrame->GetYaxis()->SetTitleOffset(2);
85 hFrame->GetYaxis()->CenterTitle();
86 hFrame->GetYaxis()->SetNdivisions(505);
92 hFrame->GetXaxis()->SetLabelFont(43);
93 hFrame->GetXaxis()->SetLabelSize(16);
94 hFrame->GetXaxis()->SetLabelOffset(0.02);
95 hFrame->GetXaxis()->SetTitleFont(43);
96 hFrame->GetXaxis()->SetTitleSize(16);
97 hFrame->GetXaxis()->SetTitleOffset(1);
98 hFrame->GetXaxis()->CenterTitle();
99 hFrame->GetXaxis()->SetNdivisions(505);
108 text.SetTextAlign(31);
109 text.SetTextFont(43);
110 text.SetTextSize(10);
111 text.DrawTextNDC(XtoPad(0.9), YtoPad(0.8),
gPad->GetName());
143 }
else if (i ==
Nx-1) {
165 }
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();
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 .