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 quick
figure
subplot
Change fig to plt:
fig
plt
plt.show()