COLZ Color Palette Font and Size

I would like to change the font on the color palette for a specific histogram, but I am unable to determine the proper method. For other axis on can simply do the following:

This method does not work for TH2::GetZaxis(). I know I can set the label font code globally through the following, but this doesn’t even change the font on the color palette.

Why is this text/label different from the other axes?

1 Like

It was not implemented. Now fixed in the trunk.
Thanks for reporting.

Which part was fixed? The part referring to gStyle or the part referring to TAxis::SetLabelFont()?

now you can do

hist->GetZaxis()->SetLabelFont(22)
1 Like

Thank you.