Hi,
I’ve drawn a histogram on the canvas and wrote the title for each axis.
After that, I want to add a watermark like “preliminary” on the plot.
How can I do for that? pleas let me know.
Thanks in advance
Hi,
I’ve drawn a histogram on the canvas and wrote the title for each axis.
After that, I want to add a watermark like “preliminary” on the plot.
How can I do for that? pleas let me know.
Thanks in advance
{
const Int_t n = 10;
Double_t x[n], y[n];
for (Int_t i=0;i<n;i++) {
x[i] = i*0.1;
y[i] = 10*sin(x[i]+0.2);
}
gr = new TGraph(n,x,y);
gr->SetMarkerStyle(20);
gr->SetMarkerColor(kBlue);
gr->Draw("AP");
tex = new TLatex(0.,3.,"Very Preliminary");
tex->SetTextColor(17);
tex->SetTextSize(0.1991525);
tex->SetTextAngle(26.15998);
tex->SetLineWidth(2);
tex->Draw();
gr->Draw("LP");
gPad->RedrawAxis();
}