Python_01j
Python_01j
More plotting
import matplotlib.pyplot as plt
import numpy as np
delta = 0.25
x = y = np.arange(-3.0, 3.0, delta)
X, Y = np.meshgrid(x, y)
Z1 = np.exp(-X**2 - Y**2)
Z2 = np.exp(-(X - 1)**2 - (Y - 1)**2)
Z = (Z1 - Z2)
fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)
im = ax1.imshow(Z, interpolation='none', origin='lower', extent=[-2, 4, -3, 2], clip_on=True)