How to draw vertical error bars only in TLegend

It looks like your macro does that. See what I get with the latest ROOT version on Mac.