I have a TGraphErrors object that I plot with the nice “[ ]” draw option. However, when I add it in the legend using “AddEntry” the “[ ]” is not reproduced in the entry. Looking at the TLegend documentation it seems this option is not supported.
Please could you tell me what is the best solution to get a legend entry adapted to the “[ ]” draw option?
thank you for your message. I am aware of that. The issue is that if I use “E” a simple vertical bar appears. I would like a point with the error bars of the “[ ]” style, so ideally an option “[]” could be added in TLegend so that I can use “P[]” to get a point with “[” “]”. Would that be possible?