From e9f3bd38172473447fdc9923697d4f88684ff176 Mon Sep 17 00:00:00 2001 From: James Dominy Date: Wed, 20 Aug 2014 14:28:40 +0200 Subject: [PATCH] Reorders axes in SVG output. Fix #145 Currently pygal renders the x-axis before the y-axis, but this means that because of the painters algorithm, the horizontal guide lines of the y-axis are above the y-axis line (which is actually an x-axis guide). If you have custom css that changes the colours of horizontal guide lines, for example to hide them until hovered over, they create visual gaps in the y-axis. --- pygal/graph/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index d50134e..fca3101 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -47,8 +47,8 @@ class Graph(BaseGraph): def _axes(self): """Draw axes""" - self._x_axis() self._y_axis() + self._x_axis() def _set_view(self): """Assign a view to current graph"""