Candle Scaled, illustrates what scaleing does on candle and violin charts.
Please try to modify the static functions SetScaledCandle and SetScaledViolin
void candlescaled()
{
TH2I *h1 =
new TH2I(
"h1",
"GausXY",20,-5,5,100,-5,5);
TH2I *h3 =
new TH2I(
"h3",
"GausXY",100,-5,5,20,-5,5);
float myRand1;
float myRand2;
for (int j = 0; j < 100000; j++) {
myRand1 = rand->
Gaus(0,1);
myRand2 = rand->
Gaus(0,1);
h1->
Fill(myRand1, myRand2);
h3->
Fill(myRand1, myRand2);
}
}
- Author
- Georg Troska
Definition in file candlescaled.C.