Dear ROOTers,
I’m writing a simple GUI that sets the color of the histogram. I use the modified axis editor from ROOT with TGColorSelect. When I pick up the color and apply it to the histogram, everything looks fine.
However, when I use the value obtained in this program and try to apply it in another macro - it sometimes doesn’t work.
For example:
- I opened editor, pickup up “kRed” and got “2”, which is weird because kRed is 632
- I opened editor pick up kRed-4, I would expect -2, or 638, but I got 1184
I know that “2” might be a predefined value, but what is the logic behind 1184? Why do such setting colors work with macros with GUI but sometimes don’t work with other macros?
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided