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

Skip to content

Commit 314f3f2

Browse files
committed
Make most arguments to Legend keyword only
1 parent 6d5ac9f commit 314f3f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/legend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ class Legend(Artist):
338338
def __str__(self):
339339
return "Legend"
340340

341-
@_api.make_keyword_only("3.6", "loc")
342341
@_docstring.dedent_interpd
343342
def __init__(
344343
self, parent, handles, labels,
344+
*,
345345
loc=None,
346346
numpoints=None, # number of points in the legend line
347347
markerscale=None, # relative size of legend markers vs. original
@@ -379,7 +379,6 @@ def __init__(
379379
handler_map=None,
380380
title_fontproperties=None, # properties for the legend title
381381
alignment="center", # control the alignment within the legend box
382-
*,
383382
ncol=1, # synonym for ncols (backward compatibility)
384383
draggable=False # whether the legend can be dragged with the mouse
385384
):

0 commit comments

Comments
 (0)