[sage-support] @interact with non-Sage objects

2010-01-24 Thread gsever
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)),

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 5:49 am, Harald Schilly harald.schi...@gmail.com wrote: Last line must be plt.savefig('plt.png') and not .show() because you are on a website and saved files are shown. When I tried it first, it didn't update the image because it was somehow locally cached. On second try it worked

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 11:14 am, Harald Schilly harald.schi...@gmail.com wrote: On Jan 24, 5:06 pm, gsever gokhanse...@gmail.com wrote: Thanks this helped. Adding a plt.clf() clear the figure after each plot update. no problem, and i looked for a .reset or similar, thanks for the .clr ()! Can you

[sage-support] Error while integrating a form of gamma distribution

2010-01-24 Thread gsever
Hello, Please see my published test notebook at: http://www.sagenb.org/home/pub/1408/ variable of integration must be a simple or subscripted variable I can get this form integrating properly, and resulting with expected gamma(nu)/(alpha^nu*s) f(x) = (mu/s)*x**(nu*mu-1)*exp(-alpha*x**mu) s =

[sage-support] Re: @interact with non-Sage objects

2010-01-24 Thread gsever
On Jan 24, 12:39 pm, Harald Schilly harald.schi...@gmail.com wrote: On Jan 24, 6:50 pm, gsever gokhanse...@gmail.com wrote: Added as first wiki entry :) No problem, and i hope it's ok that i pushed you to do it ;) http://twitter.com/sagemath/status/8158003421 It was my pleasure Harald