In [ ]:
# Check versions
import sys
import matplotlib

print "Python is:", sys.version
print "Matplotlib is:", matplotlib.__version__

# Import required libraries
import numpy as np
import matplotlib.pyplot as plt
In [ ]:
# Make a plot
fig = plt.figure(figsize=(6, 5))
ax = fig.add_subplot(111)

N = M = 200
X, Y = np.ogrid[0:20:N*1j, 0:20:M*1j]
data = np.sin(np.pi * X*2 / 20) * np.cos(np.pi * Y*2 / 20)

im = ax.imshow(data, extent=[0, 200, 0, 200])
fig.colorbar(im, ax=ax, shrink=0.8)

ax.set_xlabel("X", fontsize=18)
ax.set_ylabel("Y", fontsize=18)