Commit 8627dbd
committed
Fix Text layout cache lookup.
Even though `Text._get_layout` takes a `renderer` parameter, the cache
is looked up by the `self._renderer` attribute. If an alternate renderer
is provided without changing any other properties, the cached layout
from the previous renderer is returned.
An alternate renderer is passed by `offsetbox.TextArea`, which, through
its use in legends, causes the legend to shift slightly if figures are
saved in different formats.
Fixes matplotlib#6899.1 parent cb21ba7 commit 8627dbd
File tree
14 files changed
+2328
-2328
lines changed- lib/matplotlib
- tests/baseline_images
- test_axes
- test_legend
- test_patheffects
14 files changed
+2328
-2328
lines changedLines changed: 125 additions & 125 deletions
Loading
Lines changed: 267 additions & 267 deletions
Loading
Lines changed: 279 additions & 279 deletions
Loading
Lines changed: 196 additions & 196 deletions
Loading
Lines changed: 36 additions & 36 deletions
Loading
0 commit comments