Puts the CREDO logo at the bottom right of the current figure (or
    the figure given by the ``figure`` argument if supplied).

def putlogo(figure=None):
    """Puts the CREDO logo at the bottom right of the current figure (or
    the figure given by the ``figure`` argument if supplied).
    """
    ip = get_ipython()
    if figure is None:
        figure=plt.gcf()
    curraxis= figure.gca()
    logoaxis = figure.add_axes([0.89, 0.01, 0.1, 0.1], anchor='NW')
    logoaxis.set_axis_off()
    logoaxis.xaxis.set_visible(False)
    logoaxis.yaxis.set_visible(False)
    logoaxis.imshow(credo_logo)
    figure.subplots_adjust(right=0.98)
    figure.sca(curraxis)