Hello all
I am seeing a problem similar to that seen by Jorge Scandaliaris.
When I run python or ipython -pylab, show() apparently hangs. When I enter 
CTRL-C, the cursor re-appars, but show() now gives an error message, until I 
call figure(). This behaviour is repeatable. See trace below.
Matplotlib version 1.0.0 from openSUSE RPMs. Other versions:

libpython2_6-1_0-2.6.2-6.5.1.x86_64
libpython2_6-1_0-32bit-2.6.2-6.5.1.x86_64
python-2.6.2-6.5.1.x86_64
python-base-2.6.2-6.5.1.x86_64
python-matplotlib-1.0.0-5.1.x86_64
python-matplotlib-tk-1.0.0-5.1.x86_64
python-matplotlib-wx-1.0.0-5.1.x86_64
python-numpy-1.5.0-17.1.x86_64
python-scipy-0.8.0-12.1.x86_64
python-tk-2.6.2-6.5.1.x86_64
tk-8.5.7-3.1.x86_64

Best, Paul

Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45) 
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> fig=plt.figure()
>>> plt.show()
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
    Tk.mainloop()
  File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
    _default_root.tk.mainloop(n)
KeyboardInterrupt
>>> plt.show()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
    Tk.mainloop()
  File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
    _default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
>>> fig=plt.figure()
>>> plt.show()
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-
packages/matplotlib/backends/backend_tkagg.py", line 74, in show
    Tk.mainloop()
  File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 325, in mainloop
    _default_root.tk.mainloop(n)
KeyboardInterrupt
>>> import matplotlib
>>> matplotlib.__version__
'1.0.0'

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to