10000 Fix Text layout cache lookup. by QuLogic · Pull Request #7420 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix Text layout cache lookup. #7420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
QuLogic committed Nov 7, 2016
commit 8627dbd50e5fb6383a7cf8cf10cdf4f08f1af1d2
250 changes: 125 additions & 125 deletions lib/matplotlib/tests/baseline_images/test_axes/hist_stacked_bar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
534 changes: 267 additions & 267 deletions lib/matplotlib/tests/baseline_images/test_axes/markevery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
558 changes: 279 additions & 279 deletions lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
392 changes: 196 additions & 196 deletions lib/matplotlib/tests/baseline_images/test_legend/fancy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 36 additions & 36 deletions lib/matplotlib/tests/baseline_images/test_legend/framealpha.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
0