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

Skip to content

Commit 326576f

Browse files
committed
Make QuadMesh arguments with defaults keyword_only
1 parent 3bf56aa commit 326576f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
QuadMesh keyword only parameters
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
``QuadMesh`` parameters ``antialiased`` and ``shading`` will become
4+
keyword-only in a future version.

lib/matplotlib/collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,8 @@ class QuadMesh(Collection):
19911991
19921992
*shading* may be 'flat', or 'gouraud'
19931993
"""
1994+
@_api.make_keyword_only("3.5", "antialiased")
1995+
# See #20237 for further actions when the deprecation expires
19941996
def __init__(self, meshWidth, meshHeight, coordinates,
19951997
antialiased=True, shading='flat', **kwargs):
19961998
super().__init__(**kwargs)

0 commit comments

Comments
 (0)