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

Skip to content

Commit a202c2c

Browse files
committed
Fixed issue 4346
_apply_params was calling setattr on _size and _color instead of _labelsize and _labelcolor
1 parent 7b517da commit a202c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def _apply_params(self, **kw):
340340
# -> points. grab the integer from the `Text` object
341341
# instead of saving the string representation
342342
v = getattr(self.label1, 'get_' + k)()
343-
setattr(self, '_' + k, v)
343+
setattr(self, '_label' + k, v)
344344

345345

346346
class XTick(Tick):

0 commit comments

Comments
 (0)