Let’s say, I would like to plot 1D-sections of 2 2D-histograms.
Now, when ROOT has automatic colour picking (PLC, PMCETC), I’ve decided to plot the sections with kDeepSea palette for the first histogram and kAvocado palette for the second one.
But I’ve discovered, that changing palette in between of SAME series of plots does not have the desired effect, all the histograms are drawn with the last selected palette!
Is it possible to do what I want to do without manual color picking?
ROOT has only only palette active (current palette). To have several palettes in the same
picture you can follow what is done here using TExec. I never tried with the automatic colouring though.
Yes I am not surprised. These options hold the color setting until the pad is painted. The color is taken at painting time from the current palette … and there is only one.