Skip to content

Commit 01dd9c2

Browse files
committed
MNT: Make optional parameters to Axes keyword only
This follows the deprecation period.
1 parent c78d16d commit 01dd9c2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/api/next_api_changes/removals/23XXX-GL.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ The **minimum_descent** has been removed from ``TextArea``
1616
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1717

1818
The minimum_descent is now effectively always True.
19+
20+
Extra parameters to Axes constructor
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
Parameters of the Axes constructor other than *fig* and *rect* are now keyword only.

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ def __str__(self):
562562
return "{0}({1[0]:g},{1[1]:g};{1[2]:g}x{1[3]:g})".format(
563563
type(self).__name__, self._position.bounds)
564564

565-
@_api.make_keyword_only("3.4", "facecolor")
566565
def __init__(self, fig, rect,
566+
*,
567567
facecolor=None, # defaults to rc axes.facecolor
568568
frameon=True,
569569
sharex=None, # use Axes instance's xaxis info

0 commit comments

Comments
 (0)