Hello,<br><br>I have thought of this might interesting to share. Register at <a href="http://www.sagenb.org">www.sagenb.org</a> or try on your local Sage-notebook and using the following code:<br><br># Simple example demonstrating how to interact with matplotlib directly.<br>
# Comment plt.clf() to get the plots overlay in each update.<br># Gokhan Sever & Harald Schilly (2010-01-24)<br><br>from scipy import stats<br>import numpy as np<br>import matplotlib.pyplot as plt<br><br>@interact<br>
def plot_norm(loc=(0,(0,10)), scale=(1,(1,10))):<br>    rv = stats.norm(loc, scale)<br>    x = np.linspace(-10,10,1000)<br>    plt.plot(x,rv.pdf(x))<br>    plt.grid(True)<br>    plt.savefig('plt.png')<br>    plt.clf()<br>
<br>A very easy to use example, also well-suited for learning and demonstration purposes.<br><br>Posted at: <a href="http://wiki.sagemath.org/interact/graphics#Interactwithmatplotlib">http://wiki.sagemath.org/interact/graphics#Interactwithmatplotlib</a><br>
<br>Have fun ;)<br clear="all"><br>-- <br>Gökhan<br>