Use a THStack to show a 2-D hist with cells with different colors.
More...
Go to the source code of this file.
Use a THStack to show a 2-D hist with cells with different colors.
root > .x multicolor.C
root > .x multicolor.C(1)
void multicolor(
Int_t stack=0) {
TH2F *h1 =
new TH2F(
"h1",
"h1",nbins,-4,4,nbins,-4,4);
TH2F *h2 =
new TH2F(
"h2",
"h2",nbins,-4,4,nbins,-4,4);
TH2F *h3 =
new TH2F(
"h3",
"h3",nbins,-4,4,nbins,-4,4);
for (i=0;i<200;i++) {
if (val <= 0) continue;
} else {
}
}
}
- Author
- Rene Brun
Definition in file multicolor.C.