def rgb(self, **kwargs):
if "<STR_LIT>" in kwargs:<EOL><INDENT>use_bands = kwargs["<STR_LIT>"]<EOL>assert len(use_bands) == <NUM_LIT:3>, '<STR_LIT>'<EOL>del kwargs["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>use_bands = self._rgb_bands<EOL><DEDENT>if kwargs.get('<STR_LIT>') == True:<EOL><INDENT>return self.histogram_match(use_bands, **kwargs)<EOL><DEDENT>if "<STR_LIT>" not in kwargs:<EOL><INDENT>if "<STR_LIT>" not in kwargs:<EOL><INDENT>if not self.options.get('<STR_LIT>'):<EOL><INDENT>kwargs['<STR_LIT>'] = [<NUM_LIT:2>,<NUM_LIT>]<EOL><DEDENT><DEDENT>return self.histogram_stretch(use_bands, **kwargs)<EOL><DEDENT>elif kwargs["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>return self.histogram_equalize(use_bands, **kwargs)<EOL><DEDENT>elif kwargs["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>return self.histogram_match(use_bands, **kwargs)<EOL><DEDENT>elif kwargs["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>return self.histogram_stretch(use_bands, stretch=[<NUM_LIT:0>, <NUM_LIT:100>], **kwargs)<EOL><DEDENT>elif kwargs["<STR_LIT>"] == "<STR_LIT:ignore>" or self.options.get('<STR_LIT>'):<EOL><INDENT>data = self._read(self[use_bands,...], **kwargs)<EOL>return np.rollaxis(data, <NUM_LIT:0>, <NUM_LIT:3>)<EOL><DEDENT>else:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>
Convert the image to a 3 band RGB for plotting

        This method shares the same arguments as plot(). It will perform visual adjustment on the
        image and prepare the data for plotting in MatplotLib. Values are converted to an
        appropriate precision and the axis order is changed to put the band axis last.