Hello,
Is it possible to use the @interact with the following code-snippet? I
want experiment with distributions functions that Scipy have but not
in Sage.
Thanks
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt
@interact
def plot_norm(loc=(0,(0,10)), scale=(1,(1,10))):
rv = stats.norm(loc, scale)
x = np.linspace(0,10)
plt.plot(x,rv.pdf(x))
plt.show()
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org