Set the font ans size of TpaletteAxis in TH2?


ROOT Version: 61206
Platform: Scientific Linux


Dear rooters,

I have draw a 2D histogram with option “colz”. I wander, if I can change the font of the palette ?
Thanks a lot.

Welcome to the ROOT forum.

TPaletteAxis* p = (TPaletteAxis*)your_hist->GetListOfFunctions()->FindObject("palette");
p->SetLabelFont(42);