Thanks to visit codestin.com Credit goes to github.com
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.
1 parent d31670f commit d634609Copy full SHA for d634609
1 file changed
lib/matplotlib/axes/_axes.py
@@ -5617,8 +5617,11 @@ def _interp_grid(X):
5617
return X, Y, C, shading
5618
5619
def _pcolor_grid_deprecation_helper(self):
5620
- if any(axis._major_tick_kw["gridOn"]
5621
- for axis in self._get_axis_list()):
+ grid_active = any(axis._major_tick_kw["gridOn"]
+ for axis in self._get_axis_list())
5622
+ # explicit is-True check because get_axisbelow() can also be 'line'
5623
+ grid_hidden_by_pcolor = self.get_axisbelow() is True
5624
+ if grid_active and not grid_hidden_by_pcolor:
5625
_api.warn_deprecated(
5626
"3.5", message="Auto-removal of grids by pcolor() and "
5627
"pcolormesh() is deprecated since %(since)s and will be "
0 commit comments