19void thstack2palettecolor()
22 auto h1 =
new TH2F(
"h1",
"h1",20,0,6,20,-4,4);
23 auto h2 =
new TH2F(
"h2",
"h2",20,0,6,20,-4,4);
24 auto h3 =
new TH2F(
"h3",
"h3",20,0,6,20,-4,4);
25 auto h4 =
new TH2F(
"h4",
"h4",20,0,6,20,-4,4);
26 auto h5 =
new TH2F(
"h5",
"h5",20,0,6,20,-4,4);
31 auto hs =
new THStack(
"hs",
"Test of palette colored lego stack");
37 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=nullptr, Float_t alpha=1.)
See TColor::SetPalette.