class_docstr: An MPL axis-like object that displays a 2D view 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.
  %(radiological)s
class_docstr_tok: ["An","MPL","axis-like","object","that","displays","a","2D","view","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",".","%","(","radiological",")","s"]
docstr: Draw the annotation "L" for left, and "R" for right.
  
  Parameters
  ----------
  size : :obj:`float`, optional
      Size of the text areas.
  
  bg_color : matplotlib color: :obj:`str` or (r, g, b) value
      The background color for both text areas.
docstr_tok: ["Draw","the","annotation","``","L","''","for","left",",","and","``","R","''","for","right",".","Parameters","--","--","--","--","--","size",":",":","obj",":","`","float","`",",","optional","Size","of","the","text","areas",".","bg_color",":","matplotlib","color",":",":","obj",":","`","str","`","or","(","r",",","g",",","b",")","value","The","background","color","for","both","text","areas","."]
code: def draw_left_right(self, size, bg_color, **kwargs):
      """Draw the annotation "L" for left, and "R" for right.
  
      Parameters
      ----------
      size : :obj:`float`, optional
          Size of the text areas.
  
      bg_color : matplotlib color: :obj:`str` or (r, g, b) value
          The background color for both text areas.
  
      """
      if self.direction in "xlr":
          return
      ax = self.ax
      annotation_on_left = "L"
      annotation_on_right = "R"
      if self.radiological:
          ax.invert_xaxis()
          annotation_on_left = "R"
          annotation_on_right = "L"
      ax.text(
          0.1,
          0.95,
          annotation_on_left,
          transform=ax.transAxes,
          horizontalalignment="left",
          verticalalignment="top",
          size=size,
          bbox=dict(
              boxstyle="square,pad=0", ec=bg_color, fc=bg_color, alpha=1
          ),
          **kwargs,
      )
  
      ax.text(
          0.9,
          0.95,
          annotation_on_right,
          transform=ax.transAxes,
          horizontalalignment="right",
          verticalalignment="top",
          size=size,
          bbox=dict(boxstyle="square,pad=0", ec=bg_color, fc=bg_color),
          **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 6 for calling the BaseAxes obj's underlying member method code with example usage: obj.draw_left_right(size, bg_color) without return types