class_docstr: 4-panel `~.Axes.imshow` (RGB, R, G, B).
  
  Layout::
  
      ┌───────────────┬─────┐
      │               │  R  │
      │               ├─────┤
      │      RGB      │  G  │
      │               ├─────┤
      │               │  B  │
      └───────────────┴─────┘
  
  Subclasses can override the ``_defaultAxesClass`` attribute.
  By default RGBAxes uses `.mpl_axes.Axes`.
  
  Attributes
  ----------
  RGB : ``_defaultAxesClass``
      The Axes object for the three-channel `~.Axes.imshow`.
  R : ``_defaultAxesClass``
      The Axes object for the red channel `~.Axes.imshow`.
  G : ``_defaultAxesClass``
      The Axes object for the green channel `~.Axes.imshow`.
  B : ``_defaultAxesClass``
      The Axes object for the blue channel `~.Axes.imshow`.
docstr: Parameters
  ----------
  pad : float, default: 0
      Fraction of the Axes height to put as padding.
  axes_class : `~matplotlib.axes.Axes`
      Axes class to use. If not provided, ``_defaultAxesClass`` is used.
  *args
      Forwarded to *axes_class* init for the RGB Axes
  **kwargs
      Forwarded to *axes_class* init for the RGB, R, G, and B Axes
docstr_tok: ["Parameters","--","--","--","--","--","pad",":","float",",","default",":","0","Fraction","of","the","Axes","height","to","put","as","padding",".","axes_class",":","`","~matplotlib.axes.Axes","`","Axes","class","to","use",".","If","not","provided",",","``","_defaultAxesClass","``","is","used",".","*","args","Forwarded","to","*","axes_class","*","init","for","the","RGB","Axes","*","*","kwargs","Forwarded","to","*","axes_class","*","init","for","the","RGB",",","R",",","G",",","and","B","Axes"]
code: def __init__(self, *args, pad=0, **kwargs):
      """
      Parameters
      ----------
      pad : float, default: 0
          Fraction of the Axes height to put as padding.
      axes_class : `~matplotlib.axes.Axes`
          Axes class to use. If not provided, ``_defaultAxesClass`` is used.
      *args
          Forwarded to *axes_class* init for the RGB Axes
      **kwargs
          Forwarded to *axes_class* init for the RGB, R, G, and B Axes
      """
      axes_class = kwargs.pop("axes_class", self._defaultAxesClass)
      self.RGB = ax = axes_class(*args, **kwargs)
      ax.get_figure().add_axes(ax)
      self.R, self.G, self.B = make_rgb_axes(
          ax, pad=pad, axes_class=axes_class, **kwargs
      )
      # Set the line color and ticks for the axes.
      for ax1 in [self.RGB, self.R, self.G, self.B]:
          if isinstance(ax1.axis, MethodType):
              ad = Axes.AxisDict(self)
              ad.update(
                  bottom=SimpleAxisArtist(
                      ax1.xaxis, 1, ax1.spines["bottom"]
                  ),
                  top=SimpleAxisArtist(ax1.xaxis, 2, ax1.spines["top"]),
                  left=SimpleAxisArtist(
                      ax1.yaxis, 1, ax1.spines["left"]
                  ),
                  right=SimpleAxisArtist(
                      ax1.yaxis, 2, ax1.spines["right"]
                  ),
              )
          else:
              ad = ax1.axis
          ad[:].line.set_color("w")
          ad[:].major_ticks.set_markeredgecolor("w")
  
file_path: catboost/contrib/python/matplotlib/py3/mpl_toolkits/axes_grid1/axes_rgb.py
imports: from types import MethodType
  import numpy
  from .axes_divider import make_axes_locatable, Size
  from .mpl_axes import Axes, SimpleAxisArtist
label_desc: Use image node_id 1 to create a new RGBAxes object  with example: obj = RGBAxes()