Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 112aeb5

Browse files
committed
Merge branch 'v1.0.x-maint'
2 parents ac02f83 + 7e54ffb commit 112aeb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/axis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def set_clip_path(self, clippath, transform=None):
167167
set_clip_path.__doc__ = artist.Artist.set_clip_path.__doc__
168168

169169
def get_pad_pixels(self):
170-
return self.figure.dpi * self._pad / 72.0
170+
return self.figure.dpi * self._base_pad / 72.0
171171

172172
def contains(self, mouseevent):
173173
"""
@@ -185,11 +185,11 @@ def set_pad(self, val):
185185
186186
ACCEPTS: float
187187
"""
188-
self._pad = val
188+
self._apply_params(pad=val)
189189

190190
def get_pad(self):
191191
'Get the value of the tick label pad in points'
192-
return self._pad
192+
return self._base_pad
193193

194194
def _get_text1(self):
195195
'Get the default Text 1 instance'

0 commit comments

Comments
 (0)