Hi!
I make a Draw(“p”) but I want also to print the “length” of the bin… Like an Xaxis error…
Any ideas?
Many thanks!
Hi!
I make a Draw(“p”) but I want also to print the “length” of the bin… Like an Xaxis error…
Any ideas?
Many thanks!
What are you drawing ? A polymarker ?
For instance, you can use TGraphErrors and plot it with the option P.
I have a simple histogram…
And i want the one I attach…
Draw with the option E.
Can you send a small running macro reproducing the problem ?
Can I lose the y-axis-errors??
TCanvas *c1 = new TCanvas(“c1”, “Sigma MC”, 1200, 900);
TH1F *h1 = new TH1F(“h1”,“Sigma MC”, 5, 0.5, 5.5);
h1->SetBinContent(2,.022);
h1->SetBinContent(4,.014);
h1->Draw(“E1”);
h1->SetMarkerStyle(22);
h1->SetMarkerColor(kRed);
c1->SetGrid();
You say you do not want the Y error (“can I lose Y axis errors ?”) .
In that case you should use:
root.cern.ch/root/html/TGraphErrors.html
see also:
root.cern.ch/root/html/TGraphPainter.html#GP03
Loads of thanks!!!