File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -150,3 +150,8 @@ support for it will be dropped in a future Matplotlib release.
150
150
`.font_manager.json_dump ` now locks the font manager dump file
151
151
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152
152
... to prevent multiple processes from writing to it at the same time.
153
+
154
+ `.pyplot.rgrids ` and `.pyplot.thetagrids ` now act as setters also when called with only kwargs
155
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156
+ Previously, keyword arguments were silently ignored when no positional
157
+ arguments were given.
Original file line number Diff line number Diff line change @@ -1627,7 +1627,7 @@ def rgrids(*args, **kwargs):
1627
1627
ax = gca ()
1628
1628
if not isinstance (ax , PolarAxes ):
1629
1629
raise RuntimeError ('rgrids only defined for polar axes' )
1630
- if len ( args ) == 0 :
1630
+ if not args and not kwargs :
1631
1631
lines = ax .yaxis .get_gridlines ()
1632
1632
labels = ax .yaxis .get_ticklabels ()
1633
1633
else :
@@ -1694,7 +1694,7 @@ def thetagrids(*args, **kwargs):
1694
1694
ax = gca ()
1695
1695
if not isinstance (ax , PolarAxes ):
1696
1696
raise RuntimeError ('thetagrids only defined for polar axes' )
1697
- if len ( args ) == 0 :
1697
+ if not args and not kwargs :
1698
1698
lines = ax .xaxis .get_ticklines ()
1699
1699
labels = ax .xaxis .get_ticklabels ()
1700
1700
else :
You can’t perform that action at this time.
0 commit comments