class_docstr: An MPL axis-like object that displays a cut of 3D volumes.
  
  Parameters
  ----------
  %(ax)s
  direction : {'x', 'y', 'z'}
      The directions of the view.
  
  coord : :obj:`float`
      The coordinate along the direction of the cut.
class_docstr_tok: ["An","MPL","axis-like","object","that","displays","a","cut","of","3D","volumes",".","Parameters","--","--","--","--","--","%","(","ax",")","s","direction",":","{","'","x","'",",","'","y","'",",","'","z","'","}","The","directions","of","the","view",".","coord",":",":","obj",":","`","float","`","The","coordinate","along","the","direction","of","the","cut","."]
docstr: Draw coordinates.
  
  Parameters
  ----------
  size : :obj:`float`, optional
      Size of the text area.
  
  bg_color : matplotlib color: :obj:`str` or (r, g, b) value
      The background color for text area.
  
  decimals : :obj:`bool` or :obj:`str`, default=False
      Formatting string for the coordinates.
      If set to ``False``, integer formatting will be used.
docstr_tok: ["Draw","coordinates",".","Parameters","--","--","--","--","--","size",":",":","obj",":","`","float","`",",","optional","Size","of","the","text","area",".","bg_color",":","matplotlib","color",":",":","obj",":","`","str","`","or","(","r",",","g",",","b",")","value","The","background","color","for","text","area",".","decimals",":",":","obj",":","`","bool","`","or",":","obj",":","`","str","`",",","default=False","Formatting","string","for","the","coordinates",".","If","set","to","``","False","``",",","integer","formatting","will","be","used","."]
code: def draw_position(self, size, bg_color, decimals=False, **kwargs):
      """Draw coordinates.
  
      Parameters
      ----------
      size : :obj:`float`, optional
          Size of the text area.
  
      bg_color : matplotlib color: :obj:`str` or (r, g, b) value
          The background color for text area.
  
      decimals : :obj:`bool` or :obj:`str`, default=False
          Formatting string for the coordinates.
          If set to ``False``, integer formatting will be used.
  
  
      """
      if decimals:
          text = f"%s=%.{decimals}f"
          coord = float(self.coord)
      else:
          text = "%s=%i"
          coord = self.coord
      ax = self.ax
      ax.text(
          0,
          0,
          text % (self.direction, coord),
          transform=ax.transAxes,
          horizontalalignment="left",
          verticalalignment="bottom",
          size=size,
          bbox=dict(
              boxstyle="square,pad=0", ec=bg_color, fc=bg_color, alpha=1
          ),
          **kwargs,
      )
  
imports: import numbers
  import matplotlib.pyplot
  import numpy
  from matplotlib.colors import Normalize
  from matplotlib.font_manager import FontProperties
  from matplotlib.lines import Line2D
  from matplotlib.patches import FancyArrow
  from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar
  from nilearn._utils.docs import fill_doc
  from nilearn.image import coord_transform
  from nilearn.plotting.glass_brain import plot_brain_schematics
label_desc: Use image node_id 2 for calling the CutAxes obj's underlying member method code with example usage: obj.draw_position(size, bg_color, decimals) without return types