class_docstr: An MPL axis-like object that displays a cut of 3D volumes
      
class_docstr_tok: ["An","MPL","axis-like","object","that","displays","a","cut","of","3D","volumes"]
code: def draw_cut(
      self, cut, data_bounds, bounding_box, type="imshow", **kwargs
  ):
      # kwargs massaging
      kwargs["origin"] = "upper"
      if mpl.__version__ < "0.99.1":
          cmap = kwargs.get(
              "cmap", plt.cm.cmap_d[plt.rcParams["image.cmap"]]
          )
          kwargs["cmap"] = CMapProxy(cmap)
  
      if self.direction == "y":
          (xmin, xmax), (_, _), (zmin, zmax) = data_bounds
          (xmin_, xmax_), (_, _), (zmin_, zmax_) = bounding_box
      elif self.direction == "x":
          (_, _), (xmin, xmax), (zmin, zmax) = data_bounds
          (_, _), (xmin_, xmax_), (zmin_, zmax_) = bounding_box
      elif self.direction == "z":
          (xmin, xmax), (zmin, zmax), (_, _) = data_bounds
          (xmin_, xmax_), (zmin_, zmax_), (_, _) = bounding_box
      else:
          raise ValueError(
              f"Invalid value for direction {self.direction}"
          )
      ax = self.ax
      getattr(ax, type)(cut, extent=(xmin, xmax, zmin, zmax), **kwargs)
  
      self._object_bounds.append((xmin_, xmax_, zmin_, zmax_))
      ax.axis(self.get_object_bounds())
  
imports: import matplotlib
  import matplotlib.pyplot
  import numpy
  from matplotlib import transforms
  from nipy.utils import is_iterable
  from ..datasets import VolumeImg
  from .None import cm
  from .coord_tools import coord_transform, find_cut_coords, get_bounds, get_mask_bounds
  from .edge_detect import _edge_map
label_desc: Use image node_id 3 for calling the CutAxes obj's underlying member method code with example usage: obj.draw_cut(cut, data_bounds, bounding_box, type) without return types