This tutorial illustrates how to use the highlight mode with trees.
{
info->SetTextSizePixels(25);
}
temp = " ";
}
{
hDay->GetYaxis()->SetNdivisions(410);
}
}
{
hMonth->GetXaxis()->SetNdivisions(112);
hMonth->GetXaxis()->CenterLabels();
hMonth->GetYaxis()->SetNdivisions(410);
}
}
{
}
{
auto dir =
gROOT->GetTutorialDir();
dir.Append("/io/tree/");
dir.ReplaceAll("/./","/");
if (
tree->ReadFile(
Form(
"%stemperature_Prague.dat", dir.Data())) == 0)
return;
tree->Draw(
"T:YEAR>>hYear",
"",
"goff");
hYear->GetXaxis()->SetNdivisions(410);
hYear->GetYaxis()->SetNdivisions(309);
hYear->SetMarkerStyle(8);
hYear->SetMarkerSize(0.75);
Canvas =
new TCanvas(
"Canvas",
"Canvas", 0, 0, 700, 900);
Canvas->
Divide(1, 3, 0.001, 0.001);
}
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