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 4fb84b4

Browse filesBrowse files
authored
Merge pull request #18765 from anntzer/tickpriv
Remove some unused tick private attributes.
2 parents cf83ec4 + 520d9ba commit 4fb84b4
Copy full SHA for 4fb84b4

File tree

Expand file treeCollapse file tree

1 file changed

+0
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-8
lines changed
Open diff view settings
Collapse file

‎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.