[Python-modules-commits] [python-mplexporter] 10/135: changes to work with mpld3_rewrite
Wolfgang Borgert
debacle at moszumanska.debian.org
Tue Sep 23 21:18:58 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 d4faf5de93db5a90c7e98611210fd013496bf30b
Author: Jake Vanderplas <vanderplas at astro.washington.edu>
Date: Tue Feb 18 13:40:45 2014 -0800
changes to work with mpld3_rewrite
---
mplexporter/exporter.py | 8 ++++----
mplexporter/utils.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/mplexporter/exporter.py b/mplexporter/exporter.py
index 445b879..c636b7f 100644
--- a/mplexporter/exporter.py
+++ b/mplexporter/exporter.py
@@ -80,10 +80,10 @@ class Exporter(object):
'ylabel': ax.get_ylabel(),
'title': ax.get_title(),
'bounds': ax.get_position().bounds,
- 'xgrid': (ax.xaxis._gridOnMajor
- and ax.xaxis.get_gridlines()),
- 'ygrid': (ax.yaxis._gridOnMajor
- and ax.yaxis.get_gridlines()),
+ 'xgrid': bool(ax.xaxis._gridOnMajor
+ and ax.xaxis.get_gridlines()),
+ 'ygrid': bool(ax.yaxis._gridOnMajor
+ and ax.yaxis.get_gridlines()),
'dynamic': ax.get_navigate()}
with self.renderer.draw_axes(ax, properties):
self._extract_lines(ax)
diff --git a/mplexporter/utils.py b/mplexporter/utils.py
index 73d74fe..8f2c4a0 100644
--- a/mplexporter/utils.py
+++ b/mplexporter/utils.py
@@ -69,7 +69,7 @@ def get_line_style(line):
if style['alpha'] is None:
style['alpha'] = 1
style['color'] = color_to_hex(line.get_color())
- style['width'] = line.get_linewidth()
+ style['linewidth'] = line.get_linewidth()
style['dasharray'] = get_dasharray(line)
return style
--
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