import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import Tkinter

x = np.linspace(-5, 5, 101)
y = x
Z = np.sin(x*y[:,None]).clip(-1,1-0.1)
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
patch = ax.imshow(Z, interpolation='nearest', extent=[-5,5,-5,5],
		norm = colors.Normalize(vmin = -1, vmax = 1))
cbar = fig.colorbar(patch)

fig.show()
