should do the job. (Well, after another look at the ROOT pages it looks like “ep” does not work for any of the two AddEntry methods [2].) It does not work for me, as you can see with the simple ROOT macro that I include in this post.
I believe you wanted to draw your histogram using: h1->Draw(“ex0p”);
You can simply say (don’t use “SAME” if it’s not really necessary - I remember cases in which it produced unwanted side effects, probably being interpreted as 4 independent flags): legend->Draw();
See also http://root.cern.ch/root/html/THistPainter.html
[quote=“couet”][quote]
Note the colour difference of error bars, though. The histogram has them blue, the legend black.
[/quote]
Fixed[/quote]
The color of the line is still different between the histogram marker in the marker in the legend in root 5.34/00. Did you mean that one can fix this manually? If so, how? Or did you mean that it was fixed in some particular version of root? If so, in what version was that fixed?