From 035f36011cd87d9383c1cf0d710edad14ea269a2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 7 Dec 2014 21:17:00 +1000 Subject: [PATCH] Add ability to edit single margins --- pygal/graph/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pygal/graph/base.py b/pygal/graph/base.py index ff5ac22..d9d3e95 100644 --- a/pygal/graph/base.py +++ b/pygal/graph/base.py @@ -50,7 +50,10 @@ class BaseGraph(object): self._x_2nd_labels = None self._y_2nd_labels = None self.nodes = {} - self.margin = Margin(*([self.margin] * 4)) + self.margin = Margin(self.margin_top or self.margin, + self.margin_right or self.margin, + self.margin_bottom or self.margin, + self.margin_left or self.margin) self._box = Box() self.view = None if self.logarithmic and self.zero == 0: