'Create the four images {rgb, r, g, b}
Parameters
r : array-like
The red array
g : array-like
The green array
b : array-like
The blue array
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'

def imshow_rgb(self, r, g, b, **kwargs):

    if (not (r.shape == g.shape == b.shape)):
        raise ValueError(u'Input    shapes    do    not    match.\nr.shape    =    {}\ng.shape    =    {}\nb.shape    =    {}'.format(r.shape, g.shape, b.shape))
    RGB = np.dstack([r, g, b])
    R = np.zeros_like(RGB)
    R[:, :, 0] = r
    G = np.zeros_like(RGB)
    G[:, :, 1] = g
    B = np.zeros_like(RGB)
    B[:, :, 2] = b
    im_rgb = self.RGB.imshow(RGB, **kwargs)
    im_r = self.R.imshow(R, **kwargs)
    im_g = self.G.imshow(G, **kwargs)
    im_b = self.B.imshow(B, **kwargs)
    return (im_rgb, im_r, im_g, im_b)
