def annotate(s, xy, ax=None):
    """
    function for plot annotation
    """
    binx = xy[0]
    biny = xy[1]
    ax.text(binx, biny, s, bbox=dict(facecolor='white', alpha=1.0),
        horizontalalignment='center', verticalalignment='center', transform
        =ax.transAxes)
