Commit 58cadad
committed
FIX: fully invalidate TransformWrapper parents before swapping
The issue is that TransformedPath only regenerates its cache for changes to the
non-affine part of the transform. When TransformWrapper for tranScale changes
from log -> linear the non-affine part of the log transform is still cached,
but when the transforms are invalidated after switching to linear the
invalidation only reports changing the affine part so the cache in
TransformedPath escapes being updated (nulled out in this case) and when we
re-draw with linear is drawing the line off screen (or at least clipped).
This change invalidates all of the parents before changing the internals of
TransformWrapper before we switch it which will cause the non-affine part to be
correctly recomputed the next time we need it.
closes matplotlib#251241 parent f3938be commit 58cadad
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
| 1735 | + | |
1735 | 1736 | | |
1736 | 1737 | | |
1737 | 1738 | | |
| |||
0 commit comments