Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97c4fb0

Browse files
committed
Make most arguments to Text keyword only
1 parent 6a5bc72 commit 97c4fb0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/text.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ class Text(Artist):
129129
def __repr__(self):
130130
return "Text(%s, %s, %s)" % (self._x, self._y, repr(self._text))
131131

132-
@_api.make_keyword_only("3.6", name="color")
133132
def __init__(self,
134-
x=0, y=0, text='',
133+
x=0, y=0, text='', *,
135134
color=None, # defaults to rc params
136135
verticalalignment='baseline',
137136
horizontalalignment='left',
@@ -143,7 +142,6 @@ def __init__(self,
143142
usetex=None, # defaults to rcParams['text.usetex']
144143
wrap=False,
145144
transform_rotates_text=False,
146-
*,
147145
parse_math=None, # defaults to rcParams['text.parse_math']
148146
**kwargs
149147
):

0 commit comments

Comments
 (0)