[Rivet-svn] rivet: Fix FillStyle=solid, that statement needs to be outside t...

Rivet Mercurial rivet at projects.hepforge.org
Thu Oct 27 17:45:02 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/18f6a759672a
branches:  release-2-5-x
changeset: 5592:18f6a759672a
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Thu Oct 27 17:43:44 2016 +0100
description:
Fix FillStyle=solid, that statement needs to be outside the for loop

diffs (19 lines):

--- a/bin/make-plots	Wed Oct 26 11:33:37 2016 +0100
+++ b/bin/make-plots	Thu Oct 27 17:43:44 2016 +0100
@@ -1852,11 +1852,11 @@
                                     if self.description.get('ConnectGaps', '0') != '1':
                                         out += ('\\psline')
                                         # TODO: Perhaps use a new dashed line to fill the gap?
-                    if self.getFillStyle() != 'none':  # make sure that filled areas go all the way down to the x-axis
-                        if (coors.phys2frameX(self.data[-1].xmax) < 1-1e-4):
-                            out += '(' + coors.strphys2frameX(self.data[-1].xmax) + ', -0.1)\n'
-                        else:
-                            out += '(1.1, -0.1)\n'
+                if self.getFillStyle() != 'none':  # make sure that filled areas go all the way down to the x-axis
+                    if (coors.phys2frameX(self.data[-1].xmax) < 1-1e-4):
+                        out += '(' + coors.strphys2frameX(self.data[-1].xmax) + ', -0.1)\n'
+                    else:
+                        out += '(1.1, -0.1)\n'
             #
             if self.getPolyMarker() != '':
                 for b in self.data:


More information about the Rivet-svn mailing list