{ auto h = new TH3D("array_histo", "array_histo", 10, 0, 10, 10, 0, 10, 10, 0, 10); h->Fill(1,1,1,5); h->Fill(9,9,9,2); h->GetZaxis()->SetTitle("aaa"); h->Draw("box2z"); gPad->SetMargin(0.1, 0.2, 0.1, 0.1); gPad->Modified(); gPad->Update(); auto p = (TPaletteAxis*)(h->FindObject("palette")); p->GetAxis()->SetTitle("vvv"); gPad->Modified(); gPad->Update(); }