First page Back Continue Last page Overview Graphics

Creating the Contour Plot

# previous script plus the following lines:

import matplotlib.pyplot as plt

plt.figure()

cp = plt.contour(X, Y, Z)

plt.clabel(cp, inline=True,

fontsize=10)

plt.title('Contour Plot')

plt.xlabel('x (cm)')

plt.ylabel('y (cm)')

plt.show()