On Wed, May 20, 2009 at 3:03 PM, Adam <[email protected]> wrote:
>
> Hi folks,
> My question is sort of a repeat of this thread:
> http://www.mail-archive.com/[email protected]/msg08432.html,
> but with some additional failures.
> I have not been able to compile my own tcl & tk on Leopard. So I
> can't follow the instructions presented above directly.
> In short, is there any (straightforward?) way to get sage to
> recognize tkinter on Mac? I'm interested in using pylab from within
> sage, so if there's an alternate path to using pylab I would be happy
> with that.
>
> Thanks,
> Adam
>
Here's how to use pylab in the notebook:
sage: from pylab import *
sage: t = arange(0.0, 2.0, 0.01)
sage: s = sin(2*pi*t)
sage: P = plot(t, s, linewidth=1.0)
sage: xl = xlabel('time (s)')
sage: yl = ylabel('voltage (mV)')
sage: t = title('About as simple as it gets, folks')
sage: grid(True)
sage: savefig('sage.png')
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---