ROOT 6.18/05 Reference Guide |
Palette coloring for histograms' stack is activated thanks to the options PFC
(Palette Fill Color), PLC
(Palette Line Color) and AMC
(Palette Marker Color).
When one of these options 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 histograms are displayed with palette coloring. The color of each histogram is picked inside the palette kOcean
.
Definition in file thstackpalettecolor.C.