showing a figure in matplotlib code example Example: matplotlib show plot import matplotlib.pyplot as plt plt.plot(x, y) plt.plot(z, t) plt.show()