Use the matplotlib OO API with these fig and ax instances rather than global functions plt.XXX.