auto tobject_style = RStyle::Parse(
"tgraph { line_width: 3; line_color: red; }");
void tobject()
{
double x[
npoints] = { 1., 2., 3., 4., 5., 6., 7., 8., 9., 10. };
double y[
npoints] = { .1, .2, .3, .4, .3, .2, .1, .2, .3, .4 };
th1->FillRandom(
"gaus", 5000);
th2->SetDirectory(
nullptr);
}
}
auto canvas = RCanvas::Create("RCanvas showing TObject-derived classes");
auto subpads = canvas->Divide(2,2);
canvas->Show();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
Drawing line attributes for different objects.
virtual void UseStyle(const std::shared_ptr< RStyle > &style)
Provides v7 drawing facilities for TObject types (TGraph, TH1, TH2, etc).
A TGraph is an object made of two arrays X and Y with npoints each.
1-D histogram with an int per channel (see TH1 documentation)
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculates a gaussian function with mean and sigma.