Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

why python stops after plt.show()

from matplotlib.pyplot import plot, draw, show
plot([1,2,3])
draw()
print('continue computation')

# at the end call show to ensure window won't close.
show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #stops
ADD COMMENT
Topic
Name
9+8 =