Using Ion() From Pylab Causes Matplotlib To Hang
I'm using Enthought's 32 bit python distribution for mac. If I try: $ ipython In [1] from pylab import * In [2] ion() In [3] plot([1,2],[1,2]) The figure is created, but python fr
Solution 1:
I was using the 'WXAgg' backend and I switched to 'macosx' this seems to fix the problem
In [1]: import matplotlib
In [2]: matplotlib.get_backend()
Out[2]: 'WXAgg'
In [3]: matplotlib.use('macosx')
In [4]: matplotlib.get_backend()
Out[4]: 'MacOSX'
In [5]: from pylab import *
In [6]: ion()
In [7]: plot([1,2]) # now works fine
Post a Comment for "Using Ion() From Pylab Causes Matplotlib To Hang"