Option 0 with TGraphErrors

The option “0” seems not to work, for example:

TCanvas *c4 = new TCanvas("c4","c4",200,10,600,400);
double x[] = {0, 1, 2, 3, 4};
double y[] = {0, 2, 4, 1, 3};
double ex[] = {0.1, 0.2, 0.3, 0.4, 0.5};
double ey[] = {1, 0.5, 1, 0.5, 1};
TGraphErrors* ge = new TGraphErrors(5, x, y, ex, ey);
ge->GetYaxis()->SetRangeUser(0.5,3)
ge->Draw("ap0");

I can’t see the error for the first point.

It works for me.
May be you are using an old version of ROOT.

[quote=“couet”]It works for me.
May be you are using an old version of ROOT.[/quote]

I’m using 5.28/00d, I found this in the ROOT Version 5.30/00 Release Notes

root.cern.ch/root/html530/notes/ … .news.html

“The option “0” for graphs with error bars is no implemented” (but it is documented!)

I tried your macro on the last ROOT version and it works for me. Use a more recent version.
See the description of this option here:
root.cern.ch/root/html/TGraphPainter.html#GP03

[quote=“couet”]I tried your macro on the last ROOT version and it works for me. Use a more recent version.
See the description of this option here:
root.cern.ch/root/html/TGraphPainter.html#GP03[/quote]

What does it means “more recent version”? 5.28/00d is the latest version. Which version are you using?

Wirh your macro I get the following image which look or according to the description of the option I send you.
I am using the root head : 5.30

[quote=“couet”]Wirh your macro I get the following image which look or according to the description of the option I send you.
I am using the root head : 5.30[/quote]

exactly, because as I said in the Release Notes they said to have fixed it. The point is that the head is not a version: it’s the head!

Ok, so if you agree the plot I posted is correct, it means it is now working and therefore you should wait the next release.