8000 Minor cleanup to Text class. · matplotlib/matplotlib@c4abdcf · GitHub
[go: up one dir, main page]

Skip to content

Commit c4abdcf

Browse files
committed
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.
1 parent 640ecd9 commit c4abdcf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/matplotlib/text.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ def _get_textbox(text, renderer):
125125
"weight": ["fontweight"],
126126
})
127127
class Text(Artist):
128-
"""
129-
Handle storing and drawing of text in window or data coordinates.
130-
"""
128+
"""Handle storing and drawing of text in window or data coordinates."""
129+
131130
zorder = 3
132131
_cached = cbook.maxdict(50)
133132

@@ -149,8 +148,7 @@ def __init__(self,
149148
**kwargs
150149
):
151150
"""
152-
Create a :class:`~matplotlib.text.Text` instance at *x*, *y*
153-
with string *text*.
151+
Create a `Text` instance at *x*, *y* with string *text*.
154152
155153
Valid kwargs are
156154
%(Text)s

0 commit comments

Comments
 (0)
0