Open eflister opened 9 years ago
Not all matplotlib backends support block=True (such as Spyder's iPython console). The script should work fine when run with the python interpreter (python workflow.py
), or as you said, you can remove the line.
OK. It looks like the block
keyword argument is actually experimental, and so may not be supported in all version of matplotlib: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.show We can use pyplot.ion
instead (http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion).
removing
(block=True)
allows it to complete without error