One-line correction to script attached to last post; so use the one attached here.
#/usr/bin/env python

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.plot([1,2,1.5])
ax.set_title("Try this")
plt.ion()
plt.show()

answer = raw_input("Was that OK?")
if answer == 'Y':
    plt.close(fig)
else:
    fig2 = plt.figure()
    ax2 = fig2.add_subplot(1,1,1)
    ax2.plot([3,2,1.5])
    ax2.set_title("second try")
    plt.draw()

    answer = raw_input("Add another line?")
    if answer == 'Y':
        ax2.plot([3.5, 2.5, 1.3], 'ro')
        plt.draw()


answer = raw_input("Return to quit")


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to