10void glbox(
bool gl =
true)
15 if (!
c->UseGL() && !
c->IsWeb())
17 "To use glbox draw option, you need either OpenGL or Web rendering enabled");
19 TPaveLabel *title =
new TPaveLabel(0.04, 0.86, 0.96, 0.98,
"\"glbox\" and \"glbox1\" options for TH3.");
23 TPad *boxPad =
new TPad(
"box",
"box", 0.02, 0.02, 0.48, 0.82);
24 TPad *box1Pad =
new TPad(
"box1",
"box1", 0.52, 0.02, 0.98, 0.82);
28 TH3F *h31 =
new TH3F(
"h31",
"h31", 10, -1, 1, 10, -1, 1, 10, -1, 1);
29 TF3 *gxy =
new TF3(
"gaus2",
"xygaus");
36 TH3F *h32 =
new TH3F(
"h32",
"h32", 10, -2, 2, 10, -1, 1, 10, -3, 3);
37 TF3 *g3 =
new TF3(
"gaus3",
"xyzgaus");
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetParameters(const Double_t *params)
TF3 defines a 3D 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)