Repository navigation
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
14 files changed
Lines changed: 2328 additions & 2328 deletions
File tree
- lib/matplotlib
- tests/baseline_images
- test_axes
- test_legend
- test_patheffects
0 commit comments