Re: changing THistPainter behaviour

From: Nico De Simone <nicola.desimone_at_roma2.infn.it>
Date: Mon, 25 Sep 2006 22:20:11 +0200


On Mon, Sep 25, 2006 at 08:43:24PM +0200, David d'Enterria wrote:
>
> h->SetMinimum(0.01); // or whichever positive value you like.

In this way I cut all the values below 0.01. I want both positive and negative values but the point is that bin with value 0 shouldn't be painted, that is what happens when I only have positive value (or if I set a minimum like you suggest).

I'm thinking about cloning the TGAxis of the TPaletteAxis of the histogram, adding h->GetMinimum() to the filled values and painting the new histogram with the new palette but with the old palette axis. I wasn't able to do it and maybe there's a better and shorter solution.

Thanks,
Nico Received on Mon Sep 25 2006 - 22:03:09 MEST

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