def plot_overflow(ax, x, y, ylim, overflow_params):
    """
    Plots labels with values greater than ylim

    This function plots labels with values greater than ylim.

    @param ax (Axis): axis where to plot
    @param x (number): x value
    @param y (number): y value
    @param ylim (number): maximum y value in the figure
    @param overflow_params (dict): dictionary of parameters to be used for the labels
    """
    if y >= ylim[1]:
        ax.text(x, ylim[1] + ylim[1] * 0.01, '%.2f' % y, **overflow_params[
            'label'])
