[HepData-svn] r1839 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Dec 8 11:50:13 GMT 2014


Author: watt
Date: Mon Dec  8 11:50:13 2014
New Revision: 1839

Log:
Corrections to Matplotlib formatter

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java	Thu Dec  4 16:56:26 2014	(r1838)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MatplotlibFormatter.java	Mon Dec  8 11:50:13 2014	(r1839)
@@ -115,9 +115,9 @@
 
                         // Append code to make the graph object
                         s.append("plt.figure()\n");
-                        s.append("plt.errorbar(xval, yval, xerr=[xerrminus, xerrplus], yerrminus, yerrplus)\n");
+                        s.append("plt.errorbar(xval, yval, xerr=[xerrminus, xerrplus], yerr=[yerrminus, yerrplus])\n");
                         s.append("plt.suptitle(\"" + path.toString() + "\")\n");
-                        s.append("plt.savefig(" + fullname.toString() + ".pdf)\n");
+                        s.append("plt.savefig(\"" + fullname.toString() + ".pdf\")\n");
                         s.append("\n");
 
                     }


More information about the HepData-svn mailing list