Suppose you need to store the figure
and subplot
in variables (to later modify attributes). How can you make the whole figure to stay and not quickly disappear after some millisecs?
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(2,2,1)
ax.plot(1)
fig.show()