[Python-modules-commits] [python-mplexporter] 103/135: Added `label` to all renderer's `draw_marker` and `draw_line` calls.

Wolfgang Borgert debacle at moszumanska.debian.org
Tue Sep 23 21:19:09 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 14bb39da65f6108de69cf599da0463ac0d079c22
Author: theengineear <andseier at gmail.com>
Date:   Fri Mar 14 11:38:03 2014 -0700

    Added `label` to all renderer's `draw_marker` and `draw_line` calls.
    
    Running `nosetests -w tests` checks out now.
---
 mplexporter/renderers/fake_renderer.py    | 4 ++--
 mplexporter/renderers/vega_renderer.py    | 4 ++--
 mplexporter/renderers/vincent_renderer.py | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/mplexporter/renderers/fake_renderer.py b/mplexporter/renderers/fake_renderer.py
index 80fccf1..a50a3b1 100644
--- a/mplexporter/renderers/fake_renderer.py
+++ b/mplexporter/renderers/fake_renderer.py
@@ -49,10 +49,10 @@ class FullFakeRenderer(FakeRenderer):
     other methods in the class.  They can be defined explicitly for
     more efficient or specialized use within the renderer implementation.
     """
-    def draw_line(self, data, coordinates, style, mplobj=None):
+    def draw_line(self, data, coordinates, style, label, mplobj=None):
         self.output += "    draw line with {0} points\n".format(data.shape[0])
 
-    def draw_markers(self, data, coordinates, style, mplobj=None):
+    def draw_markers(self, data, coordinates, style, label, mplobj=None):
         self.output += "    draw {0} markers\n".format(data.shape[0])
 
     def draw_path_collection(self, paths, path_coordinates, path_transforms,
diff --git a/mplexporter/renderers/vega_renderer.py b/mplexporter/renderers/vega_renderer.py
index c8d5040..82a30bd 100644
--- a/mplexporter/renderers/vega_renderer.py
+++ b/mplexporter/renderers/vega_renderer.py
@@ -31,7 +31,7 @@ class VegaRenderer(Renderer):
                             range="height",
                         ),]
 
-    def draw_line(self, data, coordinates, style, mplobj=None):
+    def draw_line(self, data, coordinates, style, label, mplobj=None):
         if coordinates != 'data':
             warnings.warn("Only data coordinates supported. Skipping this")
         dataname = "table{0:03d}".format(len(self.data) + 1)
@@ -53,7 +53,7 @@ class VegaRenderer(Renderer):
                            }
                        })
 
-    def draw_markers(self, data, coordinates, style, mplobj=None):
+    def draw_markers(self, data, coordinates, style, label, mplobj=None):
         if coordinates != 'data':
             warnings.warn("Only data coordinates supported. Skipping this")
         dataname = "table{0:03d}".format(len(self.data) + 1)
diff --git a/mplexporter/renderers/vincent_renderer.py b/mplexporter/renderers/vincent_renderer.py
index 6ca2eab..73691ea 100644
--- a/mplexporter/renderers/vincent_renderer.py
+++ b/mplexporter/renderers/vincent_renderer.py
@@ -9,7 +9,7 @@ class VincentRenderer(Renderer):
         self.figwidth = int(props['figwidth'] * props['dpi'])
         self.figheight = int(props['figheight'] * props['dpi'])
 
-    def draw_line(self, data, coordinates, style, mplobj=None):
+    def draw_line(self, data, coordinates, style, label, mplobj=None):
         import vincent  # only import if VincentRenderer is used
         if coordinates != 'data':
             warnings.warn("Only data coordinates supported. Skipping this")
@@ -26,7 +26,7 @@ class VincentRenderer(Renderer):
         else:
             warnings.warn("Multiple plot elements not yet supported")
 
-    def draw_markers(self, data, coordinates, style, mplobj=None):
+    def draw_markers(self, data, coordinates, style, label, mplobj=None):
         import vincent  # only import if VincentRenderer is used
         if coordinates != 'data':
             warnings.warn("Only data coordinates supported. Skipping this")

-- 
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