class_docstr: The main purpose of these class is to have auto adjust of axes size
  to the data with different layout of cuts.
class_docstr_tok: ["The","main","purpose","of","these","class","is","to","have","auto","adjust","of","axes","size","to","the","data","with","different","layout","of","cuts","."]
docstr: Write a title to the view.
  
  Parameters
  ----------
  text: string
      The text of the title
  x: float, optional
      The horizontal position of the title on the frame in
      fraction of the frame width.
  y: float, optional
      The vertical position of the title on the frame in
      fraction of the frame height.
  size: integer, optional
      The size of the title text.
  color: matplotlib color specifier, optional
      The color of the font of the title.
  bgcolor: matplotlib color specifier, optional
      The color of the background of the title.
  alpha: float, optional
      The alpha value for the background.
  kwargs:
      Extra keyword arguments are passed to matplotlib's text
      function.
docstr_tok: ["Write","a","title","to","the","view",".","Parameters","--","--","--","--","--","text",":","string","The","text","of","the","title","x",":","float",",","optional","The","horizontal","position","of","the","title","on","the","frame","in","fraction","of","the","frame","width",".","y",":","float",",","optional","The","vertical","position","of","the","title","on","the","frame","in","fraction","of","the","frame","height",".","size",":","integer",",","optional","The","size","of","the","title","text",".","color",":","matplotlib","color","specifier",",","optional","The","color","of","the","font","of","the","title",".","bgcolor",":","matplotlib","color","specifier",",","optional","The","color","of","the","background","of","the","title",".","alpha",":","float",",","optional","The","alpha","value","for","the","background",".","kwargs",":","Extra","keyword","arguments","are","passed","to","matplotlib","'s","text","function","."]
code: def title(
      self,
      text,
      x=0.01,
      y=0.99,
      size=15,
      color=None,
      bgcolor=None,
      alpha=1,
      **kwargs,
  ):
      """Write a title to the view.
  
      Parameters
      ----------
      text: string
          The text of the title
      x: float, optional
          The horizontal position of the title on the frame in
          fraction of the frame width.
      y: float, optional
          The vertical position of the title on the frame in
          fraction of the frame height.
      size: integer, optional
          The size of the title text.
      color: matplotlib color specifier, optional
          The color of the font of the title.
      bgcolor: matplotlib color specifier, optional
          The color of the background of the title.
      alpha: float, optional
          The alpha value for the background.
      kwargs:
          Extra keyword arguments are passed to matplotlib's text
          function.
      """
      if color is None:
          color = "k" if self._black_bg else "w"
      if bgcolor is None:
          bgcolor = "w" if self._black_bg else "k"
      self.frame_axes.text(
          x,
          y,
          text,
          transform=self.frame_axes.transAxes,
          horizontalalignment="left",
          verticalalignment="top",
          size=size,
          color=color,
          bbox={
              "boxstyle": "square,pad=.3",
              "ec": bgcolor,
              "fc": bgcolor,
              "alpha": alpha,
          },
          **kwargs,
      )
  
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 4 for calling the BaseSlicer obj's underlying member method code with example usage: obj.title(text, x, y, size, color, bgcolor, alpha) without return types