Example showing how a THStack with candle plot option.
void candleplotstack()
{
float Rand;
for (
int i = dateBegin->
Convert(); i < dateEnd->
Convert(); i+=86400*30) {
for (int j = 0; j < 1000; j++) {
Rand = randnum->
Gaus(500+
sin(i/10000000.)*100,50); h1->
Fill(i,Rand);
Rand = randnum->
Gaus(500+
sin(i/11000000.)*100,70); h2->Fill(i,Rand);
Rand = randnum->
Gaus(500+
sin(i/11000000.)*100,90); h3->Fill(i,Rand);
}
}
h2->SetLineColor(kRed);
h3->SetLineColor(kRed+3);
gPad->BuildLegend(0.75,0.75,0.95,0.95,
"");
}
- Authors
- Georg Troska, Olivier Couet
Definition in file candleplotstack.C.