mpl_toolkits.axes_grid1.axes_rgb.RGBAxes#

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

Bases:object

4-panelimshow (RGB, R, G, B).

Layout:

┌───────────────┬─────┐│               │  R  ││               ├─────┤│      RGB      │  G  ││               ├─────┤│               │  B  │└───────────────┴─────┘

Subclasses can override the_defaultAxesClass attribute.By default RGBAxes usesmpl_axes.Axes.

Attributes:
RGB_defaultAxesClass

The Axes object for the three-channelimshow.

R_defaultAxesClass

The Axes object for the red channelimshow.

G_defaultAxesClass

The Axes object for the green channelimshow.

B_defaultAxesClass

The Axes object for the blue channelimshow.

Parameters:
padfloat, default: 0

Fraction of the Axes height to put as padding.

axes_classAxes

Axes class to use. If not provided,_defaultAxesClass is used.

*args

Forwarded toaxes_class init for the RGB Axes

**kwargs

Forwarded toaxes_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 toimshow calls for the four images.

Returns:
rgbAxesImage
rAxesImage
gAxesImage
bAxesImage

Examples usingmpl_toolkits.axes_grid1.axes_rgb.RGBAxes#

Show RGB channels using RGBAxes

Show RGB channels using RGBAxes