Plot window not responding

474 views
Skip to first unread message

Pedro Cardoso

unread,
Oct 14, 2015, 5:52:46 PM10/14/15
to python(x,y)
Hi,
I have a problem when plotting in Spyder.

When using a the code below, the figure window opens but says "not responding". The weird thing is that if I insert a "pause" statement it plots correctly.


Using this code the plot window will freeze
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()


Using this code the plot window will display normally the graph
import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') plt.show()
plt.pause(10)

I tried to change the backend with no positive results. Any guess ?
Best Regards,
Pedro
Reply all
Reply to author
Forward
0 new messages