matplotlib / 3.5.1 / _as_gen / mpl_toolkits.axes_grid1.axes_rgb.rgbaxes.html /

mpl_toolkits.axes_grid1.axes_rgb.RGBAxes

class mpl_toolkits.axes_grid1.axes_rgb. RGBAxes ( *args, pad=0, **kwargs ) [source]

Bases: object

4-panel imshow (RGB, R, G, B).

Layout:

RGB

R

G

B

Subclasses can override the _defaultAxesClass attribute.

Attributes
RGB _defaultAxesClass

The axes object for the three-channel imshow.

R _defaultAxesClass

The axes object for the red channel imshow.

G _defaultAxesClass

The axes object for the green channel imshow.

B _defaultAxesClass

The axes object for the blue channel imshow.

Parameters
pad float, default: 0

fraction of the axes height to put as padding.

axes_class matplotlib.axes.Axes
*args

Unpacked into axes_class() init for RGB

**kwargs

Unpacked into axes_class() init for RGB, R, G, B axes

imshow_rgb ( r, g, b, **kwargs ) [source]

Create the four images {rgb, r, g, b}.

Parameters
r, g, b array-like

The red, green, and blue arrays.

kwargs imshow kwargs

kwargs get unpacked into the imshow calls for the four images.

Returns
rgb matplotlib.image.AxesImage
r matplotlib.image.AxesImage
g matplotlib.image.AxesImage
b matplotlib.image.AxesImage

Examples using mpl_toolkits.axes_grid1.axes_rgb.RGBAxes

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/mpl_toolkits.axes_grid1.axes_rgb.RGBAxes.html