Skip to content

Restore grid after pcolormesh

matplotlib's Axes.pcolormesh method sets ax.grid(False) for some reason:

https://github.com/matplotlib/matplotlib/blob/v3.0.2/lib/matplotlib/axes/_axes.py#L6007

so this PR adds a decorator to gwpy.plot.axes that can be used to restore the grid settings after an Axes call to what they were before, and applies it to the pcolormesh override method.

Merge request reports