class_docstr: Grid of data.
class_docstr_tok: ["Grid","of","data","."]
docstr: Return True if point is a valid index of grid.
docstr_tok: ["Return","True","if","point","is","a","valid","index","of","grid","."]
code: def within_grid(self, xi, yi):
      """Return True if point is a valid index of grid."""
      # Note that xi/yi can be floats; so, for example, we can't simply check
      # `xi < self.nx` since `xi` can be `self.nx - 1 < xi < self.nx`
      return (
          xi >= 0
          and xi <= self.nx - 1
          and yi >= 0
          and yi <= self.ny - 1
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import xrange
  import numpy
  import matplotlib
  import matplotlib.cm
  import matplotlib.colors
  import matplotlib.collections
  import matplotlib.lines
  import matplotlib.patches
label_desc: Use image node_id 3 for calling the Grid obj's underlying member method code with example usage: obj.within_grid(xi, yi) and returns: unknown