19 void thstackpalettecolor()
21 THStack *hs =
new THStack(
"hs",
"Stacked 1D histograms colored using kOcean palette");
26 TH1F *h1st =
new TH1F(
"h1st",
"test hstack",100,-4,4);
30 TH1F *h2st =
new TH1F(
"h2st",
"test hstack",100,-4,4);
34 TH1F *h3st =
new TH1F(
"h3st",
"test hstack",100,-4,4);
39 hs->
Draw(
"pfc nostack");
The Histogram stack class.
R__EXTERN TStyle * gStyle
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.