[Rivet-svn] r3339 - in trunk: . pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun Sep 4 10:51:56 BST 2011


Author: buckley
Date: Sun Sep  4 10:51:55 2011
New Revision: 3339

Log:
lighthisto fixes from Christian Roehr.

Modified:
   trunk/ChangeLog
   trunk/pyext/lighthisto.py

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Tue Aug 30 17:49:52 2011	(r3338)
+++ trunk/ChangeLog	Sun Sep  4 10:51:55 2011	(r3339)
@@ -1,3 +1,7 @@
+2011-09-04  Andy Buckley  <andy at insectnation.org>
+
+	* lighthisto fixes from Christian Roehr.
+
 2011-08-23  Andy Buckley  <andy at insectnation.org>
 
 	* Adding a new DECLARE_RIVET_PLUGIN wrapper macro to hide the

Modified: trunk/pyext/lighthisto.py
==============================================================================
--- trunk/pyext/lighthisto.py	Tue Aug 30 17:49:52 2011	(r3338)
+++ trunk/pyext/lighthisto.py	Sun Sep  4 10:51:55 2011	(r3339)
@@ -163,10 +163,10 @@
             r += ind + '    path="%s" title="">\n' % (
                     self.path)
         if (self.xlabel!=''):
-            r += ind + '  <dimenstion dim="0" title="%s"/>\n' % (
+            r += ind + '  <dimension dim="0" title="%s"/>\n' % (
                     htmlescape(self.xlabel))
         if (self.ylabel!=''):
-            r += ind + '  <dimenstion dim="1" title="%s"/>\n' % (
+            r += ind + '  <dimension dim="1" title="%s"/>\n' % (
                     htmlescape(self.ylabel))
         r += ind + "  <annotation>\n"
         if (self.title!=''):
@@ -389,9 +389,9 @@
         if desc.has_key("Title"):
             new.title = desc["Title"]
         if desc.has_key("XLabel"):
-            new.title = desc["XLabel"]
+            new.xlabel = desc["XLabel"]
         if desc.has_key("YLabel"):
-            new.title = desc["YLabel"]
+            new.ylabel = desc["YLabel"]
         return new
 
 


More information about the Rivet-svn mailing list