def colorbar(self, mappable=None, **kwargs):
fig = self.get_figure()<EOL>if kwargs.get('<STR_LIT>', True):<EOL><INDENT>kwargs.setdefault('<STR_LIT>', <NUM_LIT:0.>)<EOL><DEDENT>if kwargs.get('<STR_LIT>', <NUM_LIT:0.>) == <NUM_LIT:0.>:<EOL><INDENT>kwargs.setdefault('<STR_LIT>', True)<EOL><DEDENT>mappable, kwargs = gcbar.process_colorbar_kwargs(<EOL>fig, mappable=mappable, ax=self, **kwargs)<EOL>if isinstance(fig, Plot):<EOL><INDENT>kwargs['<STR_LIT>'] = False<EOL><DEDENT>return fig.colorbar(mappable, **kwargs)<EOL>
Add a `~matplotlib.colorbar.Colorbar` to these `Axes`

        Parameters
        ----------
        mappable : matplotlib data collection, optional
            collection against which to map the colouring, default will
            be the last added mappable artist (collection or image)

        fraction : `float`, optional
            fraction of space to steal from these `Axes` to make space
            for the new axes, default is ``0.`` if ``use_axesgrid=True``
            is given (default), otherwise default is ``.15`` to match
            the upstream matplotlib default.

        **kwargs
            other keyword arguments to be passed to the
            :meth:`Plot.colorbar` generator

        Returns
        -------
        cbar : `~matplotlib.colorbar.Colorbar`
            the newly added `Colorbar`

        See Also
        --------
        Plot.colorbar