Getting Started
User Guide
Reference
close
Call matplotlib.pyplot.close. This is included so you don’t have to import pyplot.
matplotlib.pyplot.close
pyplot