10000 DOC: Add documentation to Text.set_fontfamily by bharatr21 · Pull Request #13949 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: Add documentation to Text.set_fontfamily #13949

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 3 commits into from
Apr 14, 2019
Merged
Changes from 2 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
5 changes: 5 additions & 0 deletions lib/matplotlib/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,11 @@ def set_fontfamily(self, fontname):
name or a generic font class name. If the latter, the specific font
names will be looked up in the corresponding rcParams.

If a `Text` instance is constructed with `fontfamily=None`, then the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If a `Text` instance is constructed with `fontfamily=None`, then the
If a `Text` instance is constructed with ``fontfamily=None``, then the

font is set to `matplotlib.rcParams['font.family']`, and the
same is done when `set_fontfamily()` is called on an existing
`Text` instance.

Parameters
----------
fontname : {FONTNAME, 'serif', 'sans-serif', 'cursive', 'fantasy', \
Expand Down
0