def add_right_title(ax, title, **kwargs ):
    """Add a centered title on rigth of the selected axis.

    All :func:`~matplotlib.Axes.annotate` parameters are
    accessible.

    :param ax: Target plot axis.
    :type ax: :class:`~matplotlib.Axes`
    :param str title: Title text to add.

    :return: :class:`~matplotlib.text.Annotation`
    """

    if title is None:
        return
    kwargs.setdefault("xy", (1, 0.5))
    kwargs.setdefault("xytext", (5, 0))
    kwargs.setdefault("xycoords", "axes fraction")
    kwargs.setdefault("textcoords", 'offset points')
    kwargs.setdefault("ha", 'left')
    kwargs.setdefault("va", 'center')

    return ax.annotate(title, **kwargs)