From 520d9ba9e96c4c607cdaa4a8dabf78a8a509bcc1 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 18 Oct 2020 11:08:20 +0200 Subject: [PATCH] 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. --- lib/matplotlib/axis.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index 230a92a82d09..b6c612d13795 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -387,18 +387,10 @@ def _apply_params(self, **kw): if k in ['labelsize', 'labelcolor']} self.label1.set(**label_kw) self.label2.set(**label_kw) - for k, v in label_kw.items(): - # for labelsize the text objects covert str ('small') - # -> points. grab the integer from the `Text` object - # instead of saving the string representation - v = getattr(self.label1, 'get_' + k)() - setattr(self, '_label' + k, v) grid_kw = {k[5:]: v for k, v in kw.items() if k in _gridline_param_names} self.gridline.set(**grid_kw) - for k, v in grid_kw.items(): - setattr(self, '_grid_' + k, v) def update_position(self, loc): """Set the location of tick in data coords with scalar *loc*.""" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy