Skip to content

axis.py: make Tick.set_pad effective as advertised; closes Issue #88. #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
axis.py: make Tick.set_pad effective as advertised; closes Issue #88.
  • Loading branch information
efiring committed Jun 15, 2011
commit 53cc944ca1286b0d638ad295ca7f4f6f8ddbfc82
6 changes: 3 additions & 3 deletions lib/matplotlib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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'
Expand Down