Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a54abd

Browse files
committed
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.)
1 parent be03643 commit 6a54abd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,13 +1079,6 @@ def _update_transScale(self):
10791079
self.transScale.set(
10801080
mtransforms.blended_transform_factory(
10811081
self.xaxis.get_transform(), self.yaxis.get_transform()))
1082-
for line in self._children:
1083-
if not isinstance(line, mlines.Line2D):
1084-
continue
1085-
try:
1086-
line._transformed_path.invalidate()
1087-
except AttributeError:
1088-
pass
10891082

10901083
def get_position(self, original=False):
10911084
"""

0 commit comments

Comments
 (0)