26 title =
new TPaveText(0.2, 0.96, 0.8, 0.995);
27 title->SetFillColor(33);
28 title->AddText(
"Examples of Surface options");
31 TPad *pad1 =
new TPad(
"pad1",
"Gouraud shading", 0.03, 0.50, 0.98, 0.95, 21);
32 TPad *pad2 =
new TPad(
"pad2",
"Color mesh", 0.03, 0.02, 0.98, 0.48, 21);
36 TF2 *
f2 =
new TF2(
"f2",
"x**2 + y**2 - x**3 -8*x*y**4", -1., 1.2, -1.5, 1.5);
43 TF2 *f2clone =
new TF2(
"f2clone",
"x**2 + y**2 - x**3 -8*x*y**4",
48 f2clone->
Draw(
"glsurf1");
73 TF2 *fun1 =
new TF2(
"fun1",
"1000*((sin(x)/x)*(sin(y)/y))+200",
78 fun1->
Draw(
"glsurf3");
81 TF2 *fun2 =
new TF2(
"fun2",
"cos(y)*sin(x)+cos(x)*sin(y)",
83 fun2->
Draw(
"glsurf1cyl");
86 TF2 *fun3 =
new TF2(
"fun3",
"sin(x) / x * cos(y) * y", -6., 6., -6., 6.);
87 fun3->
Draw(
"glsurfpol");
90 TF3 *fun4 =
new TF3(
"fun4",
"sin(x * x + y * y + z * z - 4)",
91 -2.5, 2.5, -2.5, 2.5, -2.5, 2.5);
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
R__EXTERN TStyle * gStyle
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Update()
Update pad.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
void SetFrameFillColor(Color_t color=1)
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
A 3-Dim function with parameters.
The most important graphics class in the ROOT system.
virtual void SetNpy(Int_t npy=100)
Set the number of points used to draw the function.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
A 2-Dim function with parameters.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
double f2(const double *x)
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function.
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
void Modified(Bool_t flag=1)