[Python-modules-commits] [python-mplexporter] 112/135: more PEP8
Wolfgang Borgert
debacle at moszumanska.debian.org
Tue Sep 23 21:19:10 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 4b9d81695cc044a34f29d201543f5d9a4fc5d363
Author: John Eppley <jmeppley at gmail.com>
Date: Wed Mar 26 14:22:14 2014 -0400
more PEP8
---
mplexporter/exporter.py | 1 -
mplexporter/utils.py | 6 ++++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/mplexporter/exporter.py b/mplexporter/exporter.py
index 81bae60..3384ab7 100644
--- a/mplexporter/exporter.py
+++ b/mplexporter/exporter.py
@@ -172,7 +172,6 @@ class Exporter(object):
except NotImplementedError:
warnings.warn("Legend element %s not impemented" % child)
-
def draw_line(self, ax, line, force_trans=None):
"""Process a matplotlib line and call renderer.draw_line"""
coordinates, data = self.process_transform(line.get_transform(),
diff --git a/mplexporter/utils.py b/mplexporter/utils.py
index ffb11ec..3ac3fa4 100644
--- a/mplexporter/utils.py
+++ b/mplexporter/utils.py
@@ -297,7 +297,8 @@ def get_axes_properties(ax):
return props
-def iter_all_children(obj, skipContainers=False):
+
+def iter_all_children(obj, skipContainers=False):
"""
Returns an iterator over all childen and nested children using
obj's get_children() method
@@ -309,11 +310,12 @@ def iter_all_children(obj, skipContainers=False):
if not skipContainers:
yield child
# could use `yield from` in python 3...
- for grandchild in iter_all_children(child,skipContainers):
+ for grandchild in iter_all_children(child, skipContainers):
yield grandchild
else:
yield obj
+
def get_legend_properties(ax, legend):
handles, labels = ax.get_legend_handles_labels()
visible = legend.get_visible()
--
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