[Python-modules-commits] [python-mplexporter] 09/135: fix vega x/y labels

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 1b23dc2d7867d91e2f602bff709dc824224d1037
Author: Jake Vanderplas <vanderplas at astro.washington.edu>
Date:   Mon Feb 17 10:47:10 2014 -0800

    fix vega x/y labels
---
 mplexporter/renderers/vega_renderer.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mplexporter/renderers/vega_renderer.py b/mplexporter/renderers/vega_renderer.py
index b20782a..a03e883 100644
--- a/mplexporter/renderers/vega_renderer.py
+++ b/mplexporter/renderers/vega_renderer.py
@@ -18,19 +18,19 @@ class VegaRenderer(Renderer):
     def open_axes(self, ax, properties):
         if len(self.axes) > 0:
             warnings.warn("multiple axes not yet supported")
-        self.axes = [dict(type="x", scale="x", ticks=10),
-                     dict(type="y", scale="y", ticks=10)]
+        self.axes = [dict(type="x", scale="x", ticks=10,
+                          title=properties['xlabel']),
+                     dict(type="y", scale="y", ticks=10,
+                          title=properties['ylabel'])]
         self.scales = [dict(name="x",
                             domain=properties['xlim'],
                             type="linear",
                             range="width",
-                            title=properties['xlabel']
                         ),
                        dict(name="y",
                             domain=properties['ylim'],
                             type="linear",
                             range="height",
-                            title=properties['ylabel']
                         ),]
 
     def draw_line(self, data, coordinates, 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