[Rivet-svn] rivet: make-plots bugfix in y-axis labels for RatioPlotMode=devi...

Rivet Mercurial rivet at projects.hepforge.org
Wed Sep 28 09:00:01 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/4ccf5e74362a
branches:  release-2-5-x
changeset: 5533:4ccf5e74362a
user:      Frank Siegert <frank.siegert at cern.ch>
date:      Wed Sep 28 09:52:03 2016 +0200
description:
make-plots bugfix in y-axis labels for RatioPlotMode=deviation

diffs (21 lines):

--- a/ChangeLog	Tue Sep 27 19:23:15 2016 +0100
+++ b/ChangeLog	Wed Sep 28 09:52:03 2016 +0200
@@ -1,3 +1,7 @@
+2016-09-28  Frank Siegert  <frank.siegert at cern.ch>
+
+       * make-plots bugfix in y-axis labels for RatioPlotMode=deviation
+
 2016-09-27  Andy Buckley  <andy.buckley at cern.ch>
 
        * Add vector and scalar pT (rather than Et) to MissingMomentum.
--- a/bin/make-plots	Tue Sep 27 19:23:15 2016 +0100
+++ b/bin/make-plots	Wed Sep 28 09:52:03 2016 +0200
@@ -2302,7 +2302,7 @@
         if not label:
             label = self.get_ticklabel(value, int(self.description['LogY']) and self.coors.ymin() > 0 and self.coors.ymax() > 0)
         if self.description.has_key('RatioPlotMode') and self.description['RatioPlotMode'] == 'deviation' and \
-           self.description.has_key('RatioPlotStage') and self.description['RatioPlotStage'] == '1':
+           self.description.has_key('RatioPlotStage') and self.description['RatioPlotStage']:
             rtn = '\\uput[180]{0}(0, '+self.coors.strphys2frameY(value)+'){\\strut{}'+label+'\\,$\\sigma$}\n'
         else:
             labelparts = label.split("\\n")


More information about the Rivet-svn mailing list