19void thstack2palettecolor () {
21 auto h1 =
new TH2F(
"h1",
"h1",20,0,6,20,-4,4);
22 auto h2 =
new TH2F(
"h2",
"h1",20,0,6,20,-4,4);
23 auto h3 =
new TH2F(
"h3",
"h1",20,0,6,20,-4,4);
24 auto h4 =
new TH2F(
"h4",
"h1",20,0,6,20,-4,4);
25 auto h5 =
new TH2F(
"h5",
"h1",20,0,6,20,-4,4);
30 auto hs =
new THStack(
"hs",
"Test of palette colored lego stack");
36 hs->Draw(
"0lego1 PFC");
R__EXTERN TStyle * gStyle
2-D histogram with a float per channel (see TH1 documentation)}
The Histogram stack class.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.