Display a 3D histogram using GL (box option).
void glbox()
{
"\"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.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
3-D histogram with a float per channel (see TH1 documentation)}
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
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.
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
void SetCanvasPreferGL(Bool_t prefer=kTRUE)