From 53cc944ca1286b0d638ad295ca7f4f6f8ddbfc82 Mon Sep 17 00:00:00 2001 From: Eric Firing Date: Wed, 15 Jun 2011 13:04:45 -1000 Subject: [PATCH] axis.py: make Tick.set_pad effective as advertised; closes Issue #88. --- lib/matplotlib/axis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index a825d8eb146b..5dfbd51d4de4 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -167,7 +167,7 @@ def set_clip_path(self, clippath, transform=None): set_clip_path.__doc__ = artist.Artist.set_clip_path.__doc__ def get_pad_pixels(self): - return self.figure.dpi * self._pad / 72.0 + return self.figure.dpi * self._base_pad / 72.0 def contains(self, mouseevent): """ @@ -185,11 +185,11 @@ def set_pad(self, val): ACCEPTS: float """ - self._pad = val + self._apply_params(pad=val) def get_pad(self): 'Get the value of the tick label pad in points' - return self._pad + return self._base_pad def _get_text1(self): 'Get the default Text 1 instance'