[Rivet-svn] r3147 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Jun 10 14:17:13 BST 2011


Author: buckley
Date: Fri Jun 10 14:17:12 2011
New Revision: 3147

Log:
Problem solved: it was just that pstrickes doesn't understand scientific notation numerical values, leading to some pretty large offsets in the plotting

Modified:
   trunk/bin/make-plots

Modified: trunk/bin/make-plots
==============================================================================
--- trunk/bin/make-plots	Fri Jun 10 14:13:53 2011	(r3146)
+++ trunk/bin/make-plots	Fri Jun 10 14:17:12 2011	(r3147)
@@ -935,14 +935,11 @@
                 match = regex.search(self.data[i])
                 xcoor, ycoor = float(match.group(3)), float(match.group(4))
                 if match.group(2)[1:] in ["physicscoor", "physicsxcoor"]:
-                    print xcoor, coors.phys2frameX(xcoor)
                     xcoor = coors.phys2frameX(xcoor)
                 if match.group(2)[1:] in ["physicscoor", "physicsycoor"]:
                     ycoor = coors.phys2frameY(ycoor)
-                line = "%s(%1.2e, %1.2e)%s" % (match.group(1), xcoor, ycoor, match.group(5))
-                print line
+                line = "%s(%f, %f)%s" % (match.group(1), xcoor, ycoor, match.group(5))
                 self.data[i] = line
-            print self.data[i]
             out += self.data[i]+'\n'
         return out
 


More information about the Rivet-svn mailing list