A figure corresdongs to a graphics window. Opening a second figure opens a second window.
import matplotlib.pyplot as plt clear() clears the figure fig = plt.gcf() return the reference to the current figure