mpl_toolkits.axes_grid1.axes_rgb.RGBAxes
-
class
mpl_toolkits.axes_grid1.axes_rgb.
RGBAxes
( *args, pad=0, add_all=<deprecated parameter>, **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.
- add_all bool, default: True
-
Whether to add the {rgb, r, g, b} axes to the figure. This parameter is deprecated.
- 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
-
__dict__
= mappingproxy({'__module__': 'mpl_toolkits.axes_grid1.axes_rgb', '__doc__': '\n 4-panel imshow (RGB, R, G, B).\n\n Layout:\n\n +---------------+-----+\n | | R |\n + +-----+\n | RGB | G |\n + +-----+\n | | B |\n +---------------+-----+\n\n Subclasses can override the ``_defaultAxesClass`` attribute.\n\n Attributes\n ----------\n RGB : ``_defaultAxesClass``\n The axes object for the three-channel imshow.\n R : ``_defaultAxesClass``\n The axes object for the red channel imshow.\n G : ``_defaultAxesClass``\n The axes object for the green channel imshow.\n B : ``_defaultAxesClass``\n The axes object for the blue channel imshow.\n ', '_defaultAxesClass': <class 'mpl_toolkits.axes_grid1.mpl_axes.Axes'>, '__init__': <function RGBAxes.__init__>, 'add_RGB_to_figure': <function RGBAxes.add_RGB_to_figure>, 'imshow_rgb': <function RGBAxes.imshow_rgb>, '__dict__': <attribute '__dict__' of 'RGBAxes' objects>, '__weakref__': <attribute '__weakref__' of 'RGBAxes' objects>, '__annotations__': {}})
-
__init__
( *args, pad=0, add_all=<deprecated parameter>, **kwargs ) [source] -
Parameters: - pad float, default: 0
-
fraction of the axes height to put as padding.
- add_all bool, default: True
-
Whether to add the {rgb, r, g, b} axes to the figure. This parameter is deprecated.
- 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
-
__module__
= 'mpl_toolkits.axes_grid1.axes_rgb'
-
__weakref__
-
list of weak references to the object (if defined)
-
add_RGB_to_figure
( ) [source] -
[Deprecated] Add red, green and blue axes to the RGB composite's axes figure.
Notes
Deprecated since version 3.3.
-
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
-
RGB
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.4.3/api/_as_gen/mpl_toolkits.axes_grid1.axes_rgb.RGBAxes.html