35 info->SetTextSizePixels(25);
44 if (
hDay->GetBinEntries(
day) == 0)
62 hDay->GetYaxis()->SetNdivisions(410);
66 hDay->Draw(
"HIST, CP");
86 hMonth->GetXaxis()->SetNdivisions(112);
87 hMonth->GetXaxis()->CenterLabels();
88 hMonth->GetYaxis()->SetNdivisions(410);
119 TTree(
"tree",
"GHCN-Daily");
123 auto dir =
gROOT->GetTutorialDir();
124 dir.Append(
"/io/tree/");
125 dir.ReplaceAll(
"/./",
"/");
126 if (Form(
"%stemperature_Prague.dat", dir.Data())) == 0)
131 tree->GetLeaf(
"YEAR")->GetValue();
132 tree->GetEntries() - 1);
133 tree->GetLeaf(
"YEAR")->GetValue();
139 tree->Draw(
"T:YEAR>>hYear",
"",
"goff");
142 hYear->GetXaxis()->SetNdivisions(410);
143 hYear->GetYaxis()->SetNdivisions(309);
145 hYear->SetMarkerStyle(8);
146 hYear->SetMarkerSize(0.75);
150 Canvas =
new TCanvas(
"Canvas",
"Canvas", 0, 0, 700, 900);
151 Canvas->
HighlightConnect(
"HighlightTemp(TVirtualPad*,TObject*,Int_t,Int_t)");
152 Canvas->
Divide(1, 3, 0.001, 0.001);
154 hYear->Draw(
"HIST, LP");
158 hYear->SetHighlight();
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TStyle * gStyle
virtual void HighlightConnect(const char *slot)
This is "simplification" for function TCanvas::Connect with Highlighted signal for specific slot.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
void Update() override
Update canvas pad buffers.
To draw Mathematical Formula.
Mother of all ROOT objects.
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
TVirtualPad * GetPad(Int_t subpadnumber) const override
Get a pointer to subpadnumber of this pad.
const char * Data() const
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...
A TTree represents a columnar dataset.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0
virtual void SetGridx(Int_t value=1)=0