19 void thstack2palettecolor () {
21 TH2F *
h1 =
new TH2F(
"h1",
"h1",20,0,6,20,-4,4);
22 TH2F * h2 =
new TH2F(
"h2",
"h1",20,0,6,20,-4,4);
23 TH2F * h3 =
new TH2F(
"h3",
"h1",20,0,6,20,-4,4);
24 TH2F * h4 =
new TH2F(
"h4",
"h1",20,0,6,20,-4,4);
25 TH2F * h5 =
new TH2F(
"h5",
"h1",20,0,6,20,-4,4);
30 THStack * hs =
new THStack(
"hs",
"Test of palette colored lego stack");
36 hs->
Draw(
"0lego1 PFC");
The Histogram stack class.
R__EXTERN TStyle * gStyle
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
tomato 2-D histogram with a float per channel (see TH1 documentation)}
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
Int_t Fill(Double_t)
Invalid Fill method.
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.