mpl_toolkits.axes_grid1.axes_rgb.RGBAxes
- classmpl_toolkits.axes_grid1.axes_rgb.RGBAxes(*args, pad=0, **kwargs)[source]
-
Bases:
object4-panel
imshow(RGB, R, G, B).Layout:
┌───────────────┬─────┐ │ │ R │ │ ├─────┤ │ RGB │ G │ │ ├─────┤ │ │ B │ └───────────────┴─────┘
Subclasses can override the
_defaultAxesClassattribute. By default RGBAxes usesmpl_axes.Axes.- Attributes:
- Parameters:
-
- padfloat, default: 0
-
Fraction of the Axes height to put as padding.
-
axes_class
Axes -
Axes class to use. If not provided,
_defaultAxesClassis 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
- imshow_rgb(r, g, b, **kwargs)[source]
-
Create the four images {rgb, r, g, b}.
- Parameters:
-
- r, g, barray-like
-
The red, green, and blue arrays.
- **kwargs
-
Forwarded to
imshowcalls for the four images.
- Returns:
-
-
rgb
AxesImage -
r
AxesImage -
g
AxesImage -
b
AxesImage
-
rgb
Examples using mpl_toolkits.axes_grid1.axes_rgb.RGBAxes
© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.axes_grid1.axes_rgb.RGBAxes.html