Hi Melinda.
Ok fine. I just wanted to double check with you that all bins filled with 1 is ok. I have the fix. I will post it soon in the SVN trunk. I'll let you know.
Olivier
From: Melinda Siciliano <mellybinda_at_gmail.com<mailto:mellybinda_at_gmail.com>>
Date: Wed, 6 Jul 2011 14:18:36 +0200
To: Olivier Couet <Olivier.Couet_at_cern.ch<mailto:Olivier.Couet_at_cern.ch>>
Cc: "roottalk (Mailing list discussing all aspects of the ROOT system.)" <roottalk_at_cern.ch<mailto:roottalk_at_cern.ch>>, Annalisa Mastroserio <Annalisa.Mastroserio_at_cern.ch<mailto:Annalisa.Mastroserio_at_cern.ch>>, Domenico Elia <domenico.elia_at_cern.ch<mailto:domenico.elia_at_cern.ch>>, Chiara Bianchin <Chiara.Bianchin_at_cern.ch<mailto:Chiara.Bianchin_at_cern.ch>>, "masera_at_to.infn.it<mailto:masera_at_to.infn.it>" <masera_at_to.infn.it<mailto:masera_at_to.infn.it>>, Stefania Beole <beole_at_to.infn.it<mailto:beole_at_to.infn.it>>, Piergiorgio Cerello <cerello_at_to.infn.it<mailto:cerello_at_to.infn.it>>
Subject: Re: [ROOT] Problem drawing 2D histograms with all entries at zero with colz option
Hi Olivier,
It's the same for me. With one it works also for me, but not with zero.... And, as far as I know, the histogram can have also the case in which all the bins have zero as entry value. Annalisa, can you say something?
Cheers,
Melinda
On Wed, Jul 6, 2011 at 2:00 PM, Olivier Couet <Olivier.Couet_at_cern.ch<mailto:Olivier.Couet_at_cern.ch>> wrote: Hi Melinda,
In your macro, if instead of filling all the bins with 0 I fill them with 1, I get a correct result. Do you agree ?
Cheers,
Olivier
From: Melinda Siciliano <mellybinda_at_gmail.com<mailto:mellybinda_at_gmail.com>>
Date: Wed, 6 Jul 2011 13:18:19 +0200
To: Olivier Couet <Olivier.Couet_at_cern.ch<mailto:Olivier.Couet_at_cern.ch>>, "roottalk (Mailing list discussing all aspects of the ROOT system.)" <roottalk_at_cern.ch<mailto:roottalk_at_cern.ch>>
Cc: Annalisa Mastroserio <Annalisa.Mastroserio_at_cern.ch<mailto:Annalisa.Mastroserio_at_cern.ch>>, Domenico Elia <Domenico.Elia_at_cern.ch<mailto:Domenico.Elia_at_cern.ch>>, Chiara Bianchin <Chiara.Bianchin_at_cern.ch<mailto:Chiara.Bianchin_at_cern.ch>>, Massimo Masera <masera_at_to.infn.it<mailto:masera_at_to.infn.it>>, Stefania Beole' <beole_at_to.infn.it<mailto:beole_at_to.infn.it>>, Piergiorgio Cerello <cerello_at_to.infn.it<mailto:cerello_at_to.infn.it>>
Subject: Re: [ROOT] Problem drawing 2D histograms with all entries at zero with colz option
On Wed, Jul 6, 2011 at 1:09 PM, Melinda Siciliano <mellybinda_at_gmail.com<mailto:mellybinda_at_gmail.com>> wrote: Hi Olivier,
In the example I forced a little bit the effect. But, I think that the problem is general: if I have a macro in which I want to analyze some data and I have an histogram that I fill and it could happen that this histo can be filled with zero. But at this point, I expect that the histogram will be plot "empty" with the entries with zero value and I see that the result of the macro is this histogram have all the entries to zero.I think it is a general case that I expect a flat distribution with a value like zero instead of a number different to zero. With the previous versions, there wasn't this problem, but it appears with the 5-28-00*. I think that Annalisa can give us some more details about the histogram and how it is filled.
Cheers,
Melinda
On Wed, Jul 6, 2011 at 12:05 PM, Olivier Couet <Olivier.Couet_at_cern.ch<mailto:Olivier.Couet_at_cern.ch>> wrote: Hi,
You Paint using COLZ. So an axis will be painted along the palette.
But the histogram is empty therefore this axis ends and starts at 0.
That's what the message says.
Nothing has changed.
You used the option Z in the past also ? Your histograms were also empty ?
Cheers
From: Melinda Siciliano <mellybinda_at_gmail.com<mailto:mellybinda_at_gmail.com>>
Date: Wed, 6 Jul 2011 11:49:21 +0200
To: "roottalk (Mailing list discussing all aspects of the ROOT system.)" <roottalk_at_cern.ch<mailto:roottalk_at_cern.ch>>
Cc: Annalisa Mastroserio <Annalisa.Mastroserio_at_cern.ch<mailto:Annalisa.Mastroserio_at_cern.ch>>, Chiara Bianchin <Chiara.Bianchin_at_cern.ch<mailto:Chiara.Bianchin_at_cern.ch>>, Domenico Elia <Domenico.Elia_at_cern.ch<mailto:Domenico.Elia_at_cern.ch>>, Massimo Masera <masera_at_to.infn.it<mailto:masera_at_to.infn.it>>
Subject: [ROOT] Problem drawing 2D histograms with all entries at zero with colz option
Dear ROOTers,
I'm using the ROOT v5-28-00e. I have a situation similar to the one in the attached file. I have a 2D histogram that is filled with the number returned from another object. If the object is OK, this object returns 0, otherwise, in case of error, it will return a number different from zero, according with an error table. In principle. So, if my histogram is ok , all my entries will be set to zero.
With the past releases I didn't get any error, but now I receive a floating point error and the message
Error in <TGaxis::PaintAxis>: wmin (0.000000) == wmax (0.000000).
Has something changed between the previous release (v5-27-06)? What have I to modify?
Thanks for your help,
Cheers,
Melinda Received on Wed Jul 06 2011 - 14:21:36 CEST
This archive was generated by hypermail 2.2.0 : Wed Jul 06 2011 - 17:50:03 CEST