AddBinContent

From: Nicolas Produit <Nicolas.Produit_at_obs.unige.ch>
Date: Thu, 13 Dec 2007 12:21:05 +0100


Hi,

I fill a 2D histogram in using in a loop the method h->AddBinContent(p,s)

The histogram does not show properly if doing: h->Draw()
or
h->Draw("COLZ")
(show blank as it was 0 entry everywhere) but it is displaying correctely when doing: h->Draw("LEGO")

h->GetEntries()
return 0 Entries
but the statistical box has non zero entries everywhere

doing a
h->SetEntries(nn)
where nn is the number of time the AddBinContent was called make the histogram behaving correctely for ->Draw() and ->Draw("COLZ")

root version 5.08/00

Thanks

---
Nicolas Produit
INTEGRAL Science Data Center  Phone:  +41 22 379 2140
16, Chemin d'Ecogia                            Fax:  +41 22 379 2133
CH-1290 Versoix                               www:    http://isdc.unige.ch/~produit
Received on Thu Dec 13 2007 - 12:21:23 CET

This archive was generated by hypermail 2.2.0 : Thu Dec 13 2007 - 17:50:02 CET