ROOT 6.14/05 Reference Guide |
Palette coloring for histogram 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 TH1::Draw
the histogram get its color from the current color palette defined by gStyle->SetPalette(...)
. The color is determined according to the number of objects having palette coloring in the current pad.
In this example five histograms are displayed with palette coloring for lines and and marker. The histograms are drawn with makers and error bars and one can see the color of each histogram is picked inside the default palette kBird
.
Definition in file histpalettecolor.C.