I’ve noticed that, at least in ROOT 6.18, the palette axis takes its title after Z axis of the histogram. It can’t be modified by palette->GetAxis()->SetTitle(“aaa”) - it has no effect. I attach a sample script to reproduce this error.
is the problem. It imports the title from the z-axis overwriting
its own set by SetTitle
But this existed at least already in 6.18.00 so before option
CJUST was implemented, I guess one never could have
different titles for Zaxis and the Palette.
I just moved this line a bit up in code.
Anyway:
I will look for a fix.
The simplest way would be to save the title before Import…
and restore afterwards but may be there is a more elegant one.
Hi,
if you desperately need this feature before a fix is provided
you might try the attached workaround: test_th3d_OS.C (920 Bytes)
This replaces the original PaletteAxis with a new one with
the desired title.
Otto
Thanks Otto, I will look if something can be done in case of TH3. It is true that for TH3’s it makes no sense to have the palette title equal to the Z-axis title.
Yes that would make the change to the palette axis title easier for TH3 … instead of doing FindObject etc … I will think about it.
Or a mechanism to directly set the palette title …
I made a proposal for a quick fix here:
(save and restore palettes title if needed) https://sft.its.cern.ch/jira/browse/ROOT-10730
but may something more general as Wile proposed
is useful
Otto