void annotation3d()
{
TF2 *
f =
new TF2(
"f",
"[0]*cos(x)*cos(y)", -1, 1, -1, 1);
double s = 1./
f->Integral(-1, 1, -1, 1);
f->GetXaxis()->SetTitle(
"x");
f->GetXaxis()->SetTitleOffset(1.4);
f->GetXaxis()->SetTitleSize(0.04);
f->GetXaxis()->CenterTitle();
f->GetXaxis()->SetNdivisions(505);
f->GetXaxis()->SetTitleOffset(1.3);
f->GetXaxis()->SetLabelSize(0.03);
f->GetXaxis()->ChangeLabel(2,-1,-1,-1,
kRed,-1,
"X_{0}");
f->GetYaxis()->SetTitle(
"y");
f->GetYaxis()->CenterTitle();
f->GetYaxis()->SetTitleOffset(1.4);
f->GetYaxis()->SetTitleSize(0.04);
f->GetYaxis()->SetTitleOffset(1.3);
f->GetYaxis()->SetNdivisions(505);
f->GetYaxis()->SetLabelSize(0.03);
f->GetZaxis()->SetTitle(
"dP/dx");
f->GetZaxis()->CenterTitle();
f->GetZaxis()->SetTitleOffset(1.3);
f->GetZaxis()->SetNdivisions(505);
f->GetZaxis()->SetTitleSize(0.04);
f->GetZaxis()->SetLabelSize(0.03);
f->SetLineColorAlpha(
kAzure-2, 0.3);
double x[11] = {-0.500, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.500};
double y[11] = {-0.985, -0.8, -0.6, -0.4, -0.2, 0.0, 0.2, 0.4, 0.6, 0.8, 0.985};
double z[11];
for (
int i = 0; i < 11; ++i) z[i] = s*
cos(
x[i])*
cos(
y[i]);
double xx[2] = {-0.5, -0.5};
double yy[2] = {-0.985, -0.985};
double zz[2] = {0.11, s*
cos(-0.5)*
cos(-0.985)};
}
R__EXTERN TStyle * gStyle
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
A 2-Dim function with parameters.
To draw Mathematical Formula.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
A 3-dimensional polyline.
void Draw(Option_t *option="") override
Draw this 3-D polyline with its current attributes.
void SetOptTitle(Int_t tit=1)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetHistTopMargin(Double_t hmax=0.05)
RVec< PromoteType< T > > cos(const RVec< T > &v)