The problem is that I can't import pylab because _tkinter isn't recognized: sage: import pylab <lots of stuff chopped out> ImportError: No module named _tkinter
Adam On May 20, 4:42 pm, William Stein <wst...@gmail.com> wrote: > On Wed, May 20, 2009 at 3:03 PM, Adam <keflav...@gmail.com> wrote: > > > Hi folks, > > My question is sort of a repeat of this thread: > >http://www.mail-archive.com/sage-support@googlegroups.com/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 sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---