10000 Expire deprecation of grid argument name · matplotlib/matplotlib@c2c89cc · GitHub
[go: up one dir, main page]

Skip to content

Commit c2c89cc

Browse files
committed
Expire deprecation of grid argument name
1 parent f6e7512 commit c2c89cc

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The first parameter of ``Axes.grid`` and ``Axis.grid`` has been renamed to *visible*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
The parameter was previously named *b*. This name change only matters if that
5+
parameter was passed using a keyword argument, e.g. ``grid(b=False)``.

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3240,7 +3240,6 @@ def set_axisbelow(self, b):
32403240
self.stale = True
32413241

32423242
@_docstring.dedent_interpd
3243-
@_api.rename_parameter("3.5", "b", "visible")
32443243
def grid(self, visible=None, which='major', axis='both', **kwargs):
32453244
"""
32463245
Configure the grid lines.

lib/matplotlib/axis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,6 @@ def get_minor_ticks(self, numticks=None):
15531553

15541554
return self.minorTicks[:numticks]
15551555

1556-
@_api.rename_parameter("3.5", "b", "visible")
15571556
def grid(self, visible=None, which='major', **kwargs):
15581557
"""
15591558
Configure the grid lines.

lib/mpl_toolkits/axisartist/axislines.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ def clear(self):
503503
def get_grid_helper(self):
504504
return self._grid_helper
505505

506-
@_api.rename_parameter("3.5", "b", "visible")
507506
def grid(self, visible=None, which='major', axis="both", **kwargs):
508507
"""
509508
Toggle the gridlines, and optionally set the properties of the lines.

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,6 @@ def set_frame_on(self, b):
13501350
self._frameon = bool(b)
13511351
self.stale = True
13521352

1353-
@_api.rename_parameter("3.5", "b", "visible")
13541353
def grid(self, visible=True, **kwargs):
13551354
"""
13561355
Set / unset 3D grid.

0 commit comments

Comments
 (0)
0