Skip to content

Commit ead1c17

Browse files
committed
Make most arguments to Line2D keyword only
1 parent e5a456b commit ead1c17

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
@@ -282,8 +282,7 @@ def __str__(self):
282282
return "Line2D(%s)" % ",".join(
283283
map("({:g},{:g})".format, self._x, self._y))
284284

285-
@_api.make_keyword_only("3.6", name="linewidth")
286-
def __init__(self, xdata, ydata,
285+
def __init__(self, xdata, ydata, *,
287286
linewidth=None, # all Nones default to rc
288287
linestyle=None,
289288
color=None,

0 commit comments

Comments
 (0)