From 6a54abd27f806452df3d396c983c25e7f14fc9ef Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 7 Dec 2022 10:36:04 +0100 Subject: [PATCH] Don't manually invalidate cached lines in _update_transScale. Resetting transScale just above will invalidate any nodes that depend on it as well. (The manual line invalidation came in in ff3c65f to "fix log/linear toggle", but that toggle clearly works fine even with this removal; I assume that transform invalidation became better since then.) --- lib/matplotlib/axes/_base.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 87041ad4c395..95e87a9f5b2b 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1079,13 +1079,6 @@ def _update_transScale(self): self.transScale.set( mtransforms.blended_transform_factory( self.xaxis.get_transform(), self.yaxis.get_transform())) - for line in self._children: - if not isinstance(line, mlines.Line2D): - continue - try: - line._transformed_path.invalidate() - except AttributeError: - pass def get_position(self, original=False): """ 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