Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 520d9ba

Browse filesBrowse 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
Copy full SHA for 520d9ba

File tree

Expand file treeCollapse file tree

1 file changed

+0
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-8
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
-8Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.