Skip to content

Commit a8fd351

Browse files
committed
Make most arguments to Legend keyword only
1 parent 9044761 commit a8fd351

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
@@ -342,10 +342,10 @@ class Legend(Artist):
342342
def __str__(self):
343343
return "Legend"
344344

345-
@_api.make_keyword_only("3.6", "loc")
346345
@_docstring.dedent_interpd
347346
def __init__(
348347
self, parent, handles, labels,
348+
*,
349349
loc=None,
350350
numpoints=None, # number of points in the legend line
351351
markerscale=None, # relative size of legend markers vs. original
@@ -383,7 +383,6 @@ def __init__(
383383
handler_map=None,
384384
title_fontproperties=None, # properties for the legend title
385385
alignment="center", # control the alignment within the legend box
386-
*,
387386
ncol=1, # synonym for ncols (backward compatibility)
388387
draggable=False # whether the legend can be dragged with the mouse
389388
):

0 commit comments

Comments
 (0)