changing THistPainter behaviour

From: Nico De Simone <nicola.desimone_at_roma2.infn.it>
Date: Mon, 25 Sep 2006 19:33:07 +0200


Hello,
I'm a root newbie. Actually, if I fill an histogram with some negative values and I call Draw("colz"), root paints every bin, even if not filled.

For example:

h = new TH2I("h", "hist", 3, 0, 3, 3, 0, 3);

h->Fill(0, 0, 1);
h->Fill(1, 1, 0);
h->Fill(2, 2, -1);
h->Draw("colz");

In this way, I've lost information. I would like to get a behaviour similar to what I get filling only with positive values.

Many thanks for any suggestion,
Nico Received on Mon Sep 25 2006 - 19:16:10 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET