Hello Rooters,
I observe a very strange behavior of a 2dim histogram that is filled with two arrays where the values in the y-array are all zero. Although they are zero the markers are not exactly on the y=0 axis.
This strange behaviour disappears when I use more bins for the y axis (300 bins upwards).
Why is that?
I attached the piece of code I was using.
Thanks for a reply!
cheers,
Gerolf
void teste(){
float y[5] = {0,0,0,0,0};
float x[5] = {1,2,3,4,5};
TH2F *h2 = new TH2F(“h2”,“h2”,8,0,8,100,0,1); //markers are not at y=0 axis
//TH2F *h2 = new TH2F(“h2”,“h2”,8,0,8,500,0,1); //markers ARE nice at y=0 axis
h2->SetMarkerStyle(2);
for(i=0;i<=4;i++) {
h2->Fill(x[i],y[i]);
}
h2->Draw();
}