[Python-modules-commits] [python-mplexporter] 54/135: fix date domains

Wolfgang Borgert debacle at moszumanska.debian.org
Tue Sep 23 21:19:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-mplexporter.

commit 6d40638a936eeaee3159c7aa3a41e31156799937
Author: Jake Vanderplas <vanderplas at astro.washington.edu>
Date:   Tue Feb 25 15:50:41 2014 -0800

    fix date domains
---
 mplexporter/utils.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mplexporter/utils.py b/mplexporter/utils.py
index ce38226..63093ae 100644
--- a/mplexporter/utils.py
+++ b/mplexporter/utils.py
@@ -261,9 +261,9 @@ def get_axes_properties(ax):
         lim = domain
         if isinstance(axis.converter, matplotlib.dates.DateConverter):
             scale = 'date'
-            domain = ["new Date{0}".format((d.year, d.month - 1, d.day,
-                                            d.hour, d.minute, d.second,
-                                            d.microsecond * 1E-3))
+            domain = [(d.year, d.month - 1, d.day,
+                       d.hour, d.minute, d.second,
+                       d.microsecond * 1E-3)
                       for d in matplotlib.dates.num2date(domain)]
         else:
             scale = axis.get_scale()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-mplexporter.git



More information about the Python-modules-commits mailing list