|
[Rivet-svn] r1754 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgSat Aug 15 20:40:23 BST 2009
Author: fsiegert Date: Sat Aug 15 20:40:22 2009 New Revision: 1754 Log: Fix in make-plots: When one of the histograms in a plot had a ymin=0.0 and full-range was enabled, it threw a math domain error. Now it at least tries to look at the other histograms' ymin. Modified: trunk/bin/make-plots Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Thu Aug 13 22:41:52 2009 (r1753) +++ trunk/bin/make-plots Sat Aug 15 20:40:22 2009 (r1754) @@ -213,6 +213,9 @@ else: ymin = 1.1*min(foo) if inputdata.description['LogY']: + foo=[item for item in foo if item>0.0] + if len(foo)==0: + foo.append(2e-4*ymax) if opts.FULL_RANGE: ymin = min(foo)/1.7 else:
More information about the Rivet-svn mailing list |