8000 Minor cleanup to Text class. by anntzer · Pull Request #9832 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Minor cleanup to Text class. #9832

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 2 commits into from
May 6, 2018
Merged
Changes from 1 commit
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
Next Next commit
Minor cleanup to Text class.
1. Remove some unneeded newlines in the class docstring.
2. Add a space after commas in the repr.
3. Make the constructor docstring's first sentence fit in one line.
  • Loading branch information
anntzer committed Apr 12, 2018
commit c4abdcfdc250f8c6e9667f8797c34f8afab52840
8 changes: 3 additions & 5 deletions lib/matplotlib/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ def _get_textbox(text, renderer):
"weight": ["fontweight"],
})
class Text(Artist):
"""
Handle storing and drawing of text in window or data coordinates.
"""
"""Handle storing and drawing of text in window or data coordinates."""

zorder = 3
_cached = cbook.maxdict(50)

Expand All @@ -149,8 +148,7 @@ def __init__(self,
**kwargs
):
"""
Create a :class:`~matplotlib.text.Text` instance at *x*, *y*
with string *text*.
Create a `Text` instance at *x*, *y* with string *text*.

Valid kwargs are
%(Text)s
Expand Down
0