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()
H
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 post this somewhere to the wiki.sagemath.org/interact/graphics
(or a better topic?) as an example how to do interact with matplotlib
directly?
TIA, H!
Added as first wiki entry :)
http://wiki.sagemath.org/interact/graphics#Interactwithmatplotlib
Will also cross-post at matplotlib, numpy and scipy users. I didn't
know I am the first officially documenting this.
Thanks for your help
No problem, and i hope it's ok that i pushed you to do it ;)
It was my pleasure Harald.
Sage is one of the well designed approaches to blur the boundaries
among being a user, developer and contributor in the open-source
ecosystem. Probably I will be hanging around for a long time be it
bugging, complaining, documenting, adding content and eventually
digging into source codes ;)
;)
And guess who just made it on that page: http://sagemath.org/library-stories.html
Thanks for making me famous :) (Put in my blog as well --
http://pycloud.blogspot.com/
I am interested in poetry and like some of the burma's at
http://www.sagemath.com/library-marketing.html.
One day, I might come up with a couple interesting quartets for Sage.
TIA,
A. Jorge Garcia
http://calcpage.tripod.com
Teacher & Professor
Applied Mathematics, Physics & Computer Science
Baldwin Senior High School & Nassau Community College
On Jan 25, 12:09 pm, calcp...@aol.com wrote:
> Csn I get my SAGE related posts from my blog added to
> planet.sagemath.org?
>
> TIA,
> A. Jorge Garciahttp://calcpage.tripod.com
>
> Teacher & Professor
> Applied Mathematics, Physics & Computer Science
> Baldwin Senior High School & Nassau Community College
*** Online Since 1988 ***
How did you manage this :)
HTH,
A. Jorge Garcia
Well how do I do this, will "SAGE" in the title of a post suffice?
HTH,
A. Jorge Garcia
http://calcpage.tripod.com
Teacher & Professor
Applied Mathematics, Physics & Computer Science
Baldwin Senior High School & Nassau Community College
-----Original Message-----
From: Minh Nguyen <nguye...@gmail.com>
To: sage-s...@googlegroups.com
Sent: Mon, Jan 25, 2010 1:29 pm
Subject: Re: [sage-support] Re: @interact with non-Sage objects
Hi,
On Tue, Jan 26, 2010 at 5:09 AM, <calc...@aol.com> wrote:
> Csn I get my SAGE related posts from my blog added to
planet.sagemath.org?
Yes, your blog could be listed on Planet Sage. But you must first
categorize or label your (Sage-specific) posts. Otherwise, Planet Sage
would aggregate every new posts from your blog.
--
Regards
Minh Van Nguyen
--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to
sage-support...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Regards,
I can confirm. My e-mail addresses at that time looked like:
...!mcvax!coi!jaaps!jaap
...!mcvax!owoc!jaap
Hard to imagine nowadays: you had to know the exact route to the addressee.
jaaps was my machine at home. On a daily basis I called coi, etcetera, :)
Jaap
> HTH,
> A. Jorge Garcia
> http://calcpage.tripod.com
>
> Teacher& Professor
> Applied Mathematics, Physics& Computer Science
of archie, gopher, bitnet, uuencode, etc.
HTH,
A. Jorge Garcia
http://calcpage.tripod.com
Teacher & Professor
archie bunker!?
gopher? You are way ahead! uucp and family are breaking my heart :)
All that on 300 bps or as we said at the time 300 baud.
Or even 110 baud at the teletype. UNIX version 6, 1976!
Cheers,
Jaap
> HTH,
> A. Jorge Garcia
> http://calcpage.tripod.com
>
> Teacher& Professor
> Applied Mathematics, Physics& Computer Science
HTH,
A. Jorge Garcia
http://calcpage.tripod.com
Teacher & Professor