def show():
    tmp = StringIO()
    plt.savefig(tmp, format='png')
    uri = 'image/png;base64,' + \
          urllib.quote(base64.b64encode(tmp.getvalue()))
    print 'image:', uri
    tmp.close()
Show a matplotlib fig and stores it to be displayed as inline image.
dataset/ETHPy150Open tmetsch/suricate/bin/sdk.py/show