def shape(self):
        """Number of grid points per axis."""
        try:
            return self.__shape
        except AttributeError:
            shape = tuple(len(vec) for vec in self.coord_vectors)
            self.__shape = shape
            return shape
Number of grid points per axis.