vispipe.plot_backend.MPL_Figure.set_grid#

MPL_Figure.set_grid(visible=None, which='major', axis='both', ax=None, **kwargs)#

Sets grid lines for the axis

Parameters:
  • visible (bool | None) – If keyword arguments are passed visible is assumed to be True. If visible is None and no keyword arguments are passed the current state is toggled.

  • which (str) – Which grid lines are being changed.

  • axis (str) – Which axis’ grid lines are being changed.

  • ax (Axes | None) – Axes to plot onto. If None self.gca() is called.

  • **kwargs – Keyword arguments used by ax.grid().