How to add a title to color bar?


TH2D class object was plotted with “option=contz”, but How to add a title to color bar?

ROOT Version: 6.28/04
Platform: Ubuntu 20.04
Compiler: GCC 9.4.0


h->GetZaxis()->SetTitle("Z title");

@couet , thanks, it works well!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.