Skip to content

Commit 8627dbd

Browse files
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 #6899.
1 parent cb21ba7 commit 8627dbd

File tree

14 files changed

+2328
-2328
lines changed

14 files changed

+2328
-2328
lines changed

lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.svg

Lines changed: 125 additions & 125 deletions
Loading

lib/matplotlib/tests/baseline_images/test_axes/markevery.svg

Lines changed: 267 additions & 267 deletions
Loading

lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg

Lines changed: 279 additions & 279 deletions
Loading

lib/matplotlib/tests/baseline_images/test_legend/fancy.svg

Lines changed: 196 additions & 196 deletions
Loading

lib/matplotlib/tests/baseline_images/test_legend/framealpha.svg

Lines changed: 36 additions & 36 deletions
Loading

0 commit comments

Comments
 (0)