Display a 3D histogram using GL (box option).
{
TH3F *
h1 =
new TH3F(
"h1",
"h1", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
g3->SetParameters(1, 0, 1, 0, 1, 0, 1);
TH3F *h2 =
new TH3F(
"h2",
"h2", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
TF3 *
l3 =
new TF3(
"landau3",
"landau(x,[0],[1],[2])*gaus(y,1,[3],[4])*gaus(z,1,[3],[4])");
l3->SetParameters(1, 0, 1, 0., 0.5);
h2->FillRandom("landau3");
TH3F *h3 =
new TH3F(
"h3",
"h3", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
gx->SetParameters(1, 0, 1);
h3->FillRandom("gaus1");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
A 3-Dim function with parameters.
virtual void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr)
3-D histogram with a float per channel (see TH1 documentation)
A Pave (see TPave) with a text centered in the Pave.
void Draw(Option_t *option="") override
Draw this pavelabel with its current attributes.
void SetCanvasPreferGL(Bool_t prefer=kTRUE)