Display a 3D histogram using GL (box option).
void glbox()
{
TPaveLabel *title =
new TPaveLabel(0.04, 0.86, 0.96, 0.98,
"\"glbox\" and \"glbox1\" options for TH3.");
TPad *boxPad =
new TPad(
"box",
"box", 0.02, 0.02, 0.48, 0.82);
TPad *box1Pad =
new TPad(
"box1",
"box1", 0.52, 0.02, 0.98, 0.82);
TH3F *h31 =
new TH3F(
"h31",
"h31", 10, -1, 1, 10, -1, 1, 10, -1, 1);
TF3 *gxy =
new TF3(
"gaus2",
"xygaus");
TH3F *h32 =
new TH3F(
"h32",
"h32", 10, -2, 2, 10, -1, 1, 10, -3, 3);
TF3 *g3 =
new TF3(
"gaus3",
"xyzgaus");
}
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetParameters(const Double_t *params)
A 3-Dim function with parameters.
void Draw(Option_t *option="") override
Draw this histogram with options.
3-D histogram with a float per channel (see TH1 documentation)
void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr) override
Fill histogram following distribution in function fname.
The most important graphics class in the ROOT system.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
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)