mpl_toolkits.axes_grid1.axes_rgb.RGBAxesBase
-
class mpl_toolkits.axes_grid1.axes_rgb.RGBAxesBase(*args, pad=0, add_all=True, **kwargs)
[source] -
Bases:
object
base class for a 4-panel imshow (RGB, R, G, B)
Layout: +---------------+-----+ | | R | + +-----+ | RGB | G | + +-----+ | | B | +---------------+-----+
Attributes: -
_defaultAxesClassmatplotlib.axes.Axes
-
defaults to 'Axes' in RGBAxes child class. No default in abstract base class
-
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: -
padfloat
-
fraction of the axes height to put as padding. defaults to 0.0
-
add_allbool
-
True: Add the {rgb, r, g, b} axes to the figure defaults to True.
-
axes_classmatplotlib.axes.Axes
- *args
-
Unpacked into axes_class() init for RGB
- **kwargs
-
Unpacked into axes_class() init for RGB, R, G, B axes
-
add_RGB_to_figure(self)
[source] -
Add the red, green and blue axes to the RGB composite's axes figure
-
imshow_rgb(self, r, g, b, **kwargs)
[source] -
Create the four images {rgb, r, g, b}
Parameters: -
rarray-like
-
The red array
-
garray-like
-
The green array
-
barray-like
-
The blue array
-
kwargsimshow kwargs
-
kwargs get unpacked into the imshow calls for the four images
Returns: -
rgbmatplotlib.image.AxesImage
-
rmatplotlib.image.AxesImage
-
gmatplotlib.image.AxesImage
-
bmatplotlib.image.AxesImage
-
-
Examples using mpl_toolkits.axes_grid1.axes_rgb.RGBAxesBase
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/_as_gen/mpl_toolkits.axes_grid1.axes_rgb.RGBAxesBase.html