10000 Remove some unused tick private attributes. · matplotlib/matplotlib@520d9ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 520d9ba

Browse files
committed
Remove some unused tick private attributes.
These privates attributes were used prior to c3f87d4 to coordinate with the tick sub-components instantiation machinery, but now that ticks subcomponents are immediately instantiated, the private attributes have become unused.
1 parent 1f8f717 commit 520d9ba

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/matplotlib/axis.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,18 +387,10 @@ def _apply_params(self, **kw):
387387
if k in ['labelsize', 'labelcolor']}
388388
self.label1.set(**label_kw)
389389
self.label2.set(**label_kw)
390-
for k, v in label_kw.items():
391-
# for labelsize the text objects covert str ('small')
392-
# -> points. grab the integer from the `Text` object
393-
# instead of saving the string representation
394-
v = getattr(self.label1, 'get_' + k)()
395-
setattr(self, '_label' + k, v)
396390

397391
grid_kw = {k[5:]: v for k, v in kw.items()
398392
if k in _gridline_param_names}
399393
self.gridline.set(**grid_kw)
400-
for k, v in grid_kw.items():
401-
setattr(self, '_grid_' + k, v)
402394

403395
def update_position(self, loc):
404396
"""Set the location of tick in data coords with scalar *loc*."""

0 commit comments

Comments
 (0)
0