Before setting up the attributes of a palette, the code below was used to get the Axis of the palette,
TPaletteAxis* palette=(TPaletteAxis*)h2->FindObject(“palette”);
but it failed, from the output comment, it showed palette was a nullptr.
but from result file, there is a palette member in TH2D class pointer “h2”, it is shown below:
so how to set up the attributes of a palette?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.28/04
Platform: Ubuntu 20.04
Compiler: GCC 9.4.0
