ROOT 6.10/09 Reference Guide |
Palette coloring for 2D histograms' stack is activated thanks to the option PFC
(Palette Fill Color).
When this option is given to THStack::Draw
the histograms in the THStack
get their color from the current color palette defined by gStyle->SetPalette(…)
. The color is determined according to the number of histograms.
In this example four 2D histograms are displayed with palette coloring. The color of each graph is picked inside the palette number 1.
Definition in file thstack2palettecolor.C.