docstr: Cache relevant computations when the axes limits have changed.
docstr_tok: ["Cache","relevant","computations","when","the","axes","limits","have","changed","."]
code: def _update_grid(self, x1, y1, x2, y2):
      """Cache relevant computations when the axes limits have changed."""
  
imports: import numpy
  import matplotlib
  from matplotlib import _api
  import matplotlib.axes
  from matplotlib.path import Path
  from mpl_toolkits.axes_grid1 import mpl_axes
  from .axisline_style import AxislineStyle
  from .axis_artist import AxisArtist, GridlinesCollection
label_desc: Use image node_id 3 for calling the GridHelperBase obj's underlying member method code with example usage: obj._update_grid(x1, y1, x2, y2) without return types