Skip to content

FIX: correctly process the tick label size #17676

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
Jun 19, 2020

Conversation

tacaswell
Copy link
Member

PR Summary

Passing the size positional caused it to be treated as a fontconfig
pattern. For the relative sizes without '-' in them this formally
works and stashes the relative size in the family. We don't actually
resolve that we can find the font so this, while wrong, is not
noticed and when we ask for the size it gives us back the default
size so our size estimate was silently wrong.

In the cases where we have a '-' in the relative size the fontconfig
pattern parsing fails when we try to estimate the size.

closes #17670

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

@tacaswell tacaswell added this to the v3.3.0 milestone Jun 18, 2020
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jun 18, 2020
Passing the size positional caused it to be treated as a fontconfig
pattern.  For the relative sizes without '-' in them this formally
works and stashes the relative size in the family.  We don't actually
resolve that we can _find_ the font so this, while wrong, is not
noticed and when we ask for the size it gives us back the default
size so our size estimate was silently wrong.

In the cases where we have a '-' in the relative size the fontconfig
pattern parsing fails when we try to estimate the size.

closes  matplotlib#17670

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@tacaswell tacaswell force-pushed the fix_ticklabelsize_rcparams branch from 302bd90 to 4d2a112 Compare June 18, 2020 22:22
@anntzer anntzer merged commit a56da39 into matplotlib:master Jun 19, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 19, 2020
tacaswell added a commit that referenced this pull request Jun 19, 2020
…676-on-v3.3.x

Backport PR #17676 on branch v3.3.x (FIX: correctly process the tick label size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Setting ticksize xx-small broken by #17348
3 participants