How to draw error bar on TGraph2DErrors or TH3F

Dear root developers,
Any idea how to draw error bar on TGraph2DErrors or TH3F? ( The “E” or “ERR” option doesn’t work for me)
Normally I just want to draw the error bar on z component.

My root version is 5.18. I cannot update otherwise my project has to been rewritten.

Thanks a lot.

Use a more recent version of root.
The option for TGraph2D is ERR.