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

Skip to content

Commit 46260fe

Browse files
committed
Make most arguments to Line2D keyword only
1 parent 12f8111 commit 46260fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ def __str__(self):
269269
return "Line2D(%s)" % ",".join(
270270
map("({:g},{:g})".format, self._x, self._y))
271271

272-
@_api.make_keyword_only("3.6", name="linewidth")
273-
def __init__(self, xdata, ydata,
272+
def __init__(self, xdata, ydata, *,
274273
linewidth=None, # all Nones default to rc
275274
linestyle=None,
276275
color=None,

0 commit comments

Comments
 (0)