FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

axis.py: make Tick.set_pad effective as advertised; closes Issue #88. by efiring · Pull Request #144 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions lib/matplotlib/axis.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL