23   TCanvas *
c1 = 
new TCanvas(
"glc1", 
"Surfaces Drawing Options", 200, 10, 700, 900);
 
   26   auto 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", -1., 1.2, -1.5, 1.5);
 
   57   f2clone->GetHistogram()->GetXaxis()->SetTitle(
"x title");
 
   58   f2clone->GetHistogram()->GetYaxis()->SetTitle(
"y title");
 
   59   f2clone->GetHistogram()->GetXaxis()->SetTitleOffset(1.4);
 
   60   f2clone->GetHistogram()->GetYaxis()->SetTitleOffset(1.4);
 
   64   TCanvas *
c2 = 
new TCanvas(
"glc2", 
"Surfaces Drawing Options with gl", 700, 10, 700, 700);
 
   71   TF2 *
fun1 = 
new TF2(
"fun1", 
"1000*((sin(x)/x)*(sin(y)/y))+200", -6., 6., -6., 6.);
 
   75   fun1->Draw(
"glsurf3");
 
   78   TF2 *
fun2 = 
new TF2(
"fun2", 
"cos(y)*sin(x)+cos(x)*sin(y)", -6., 6., -6., 6.);
 
   79   fun2->Draw(
"glsurf1cyl");
 
   82   TF2 *
fun3 = 
new TF2(
"fun3", 
"sin(x) / x * cos(y) * y", -6., 6., -6., 6.);
 
   83   fun3->Draw(
"glsurfpol");
 
   86   TF3 *
fun4 = 
new TF3(
"fun4", 
"sin(x * x + y * y + z * z - 4)", -2.5, 2.5, -2.5, 2.5, -2.5, 2.5);
 
Double_t fun3(Double_t *x, Double_t *par)
Double_t fun4(Double_t x)
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.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function Note that this histogram is managed ...
A 2-Dim function with parameters.
void Draw(Option_t *option="") override
Draw this function with its current attributes.
A 3-Dim function with parameters.
The most important graphics class in the ROOT system.
A Pave (see TPave) with text, lines or/and boxes inside.
void SetFrameFillColor(Color_t color=1)
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
void SetCanvasPreferGL(Bool_t prefer=kTRUE)