Skip to content

[Doc]: Document that rcParams['font.family'] can be a list #22746

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

Closed
timhoffm opened this issue Mar 31, 2022 · 0 comments · Fixed by #23605
Closed

[Doc]: Document that rcParams['font.family'] can be a list #22746

timhoffm opened this issue Mar 31, 2022 · 0 comments · Fixed by #23605
Milestone

Comments

@timhoffm
Copy link
Member

Documentation Link

No response

Problem

Looking at

## The font.family property can take either a concrete font name (not supported

and
#font.family: sans-serif

gives the impression thatfont.family must be a single string.

However, the validator can take a list of strings:

"font.family": validate_stringlist, # used by text object

Suggested improvement

  • Document that font.family can be a list in matplotlibrc
  • validate_stringlist turns a single string into a one-element list. API-wise that's quite permissive. Do we want to change that (which might be some effort)? Or are we ok with that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants