9 "1000*(([0]*sin(x)/x)*([1]*sin(y)/y))+200",
11 f2.SetParameters(1,1);
15 for (
Int_t i=0; i<nd; i++) {
20 dte.SetPoint(i,
x,
y,
z);
24 dte.SetPointError(i,
ex,
ey,ez);
27 f2.SetParameters(0.7,1.5);
28 f2.SetTitle(
"Fitted 2D function");
34 TF2 *f2c = (
TF2*)
f2.DrawClone(
"Surf1");
38 Xaxis->SetTitle(
"X Title"); Xaxis->SetTitleOffset(1.5);
39 Yaxis->SetTitle(
"Y Title"); Yaxis->SetTitleOffset(1.5);
41 dte.DrawClone(
"P0 Same");
43 auto c_p=
new TCanvas(
"ProjCan",
44 "The Projections",1000,400);
47 dte.Project(
"x")->Draw();
49 dte.Project(
"y")->Draw();
int Int_t
Signed integer 4 bytes (int).
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
Class to manage histogram axis.
TAxis * GetYaxis() const
Get y axis of the function.
TAxis * GetZaxis() const
Get z axis of the function. (In case this object is a TF2 or TF3).
TAxis * GetXaxis() const
Get x axis of the function.
A 2-Dim function with parameters.
Graph 2D class with errors.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Random number generator class based on M.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).