Matplotlib pyplot show() doesn't work once closed

前端 未结 4 813
迷失自我
迷失自我 2020-12-31 20:06

I have a loop like this

#!/usr/bin/env python
import matplotlib.pyplot as p

for i in xrange(N):
    # Create my_image here

    # Display this image
    p.fi         


        
4条回答
  •  离开以前
    2020-12-31 20:34

    It might be from a bug in previous versions of matplotlib. I was having a similar problem when I issued sequential show() commands -- only the first would show (and stay); but, when I updated matplotlib to 1.0.1 the problem went away.

提交回复
热议问题