We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0af7cc + 9e6d723 commit a6da11eCopy full SHA for a6da11e
lib/matplotlib/axes/_axes.py
@@ -5624,8 +5624,11 @@ def _interp_grid(X):
5624
return X, Y, C, shading
5625
5626
def _pcolor_grid_deprecation_helper(self):
5627
- if any(axis._major_tick_kw["gridOn"]
5628
- for axis in self._get_axis_list()):
+ grid_active = any(axis._major_tick_kw["gridOn"]
+ for axis in self._get_axis_list())
5629
+ # explicit is-True check because get_axisbelow() can also be 'line'
5630
+ grid_hidden_by_pcolor = self.get_axisbelow() is True
5631
+ if grid_active and not grid_hidden_by_pcolor:
5632
_api.warn_deprecated(
5633
"3.5", message="Auto-removal of grids by pcolor() and "
5634
"pcolormesh() is deprecated since %(since)s and will be "
0 commit comments