Files
simpeg/docs/examples/mesh/plot_image_2D.py
T
2013-10-18 17:36:14 -07:00

12 lines
225 B
Python

import numpy as np
import matplotlib.pyplot as plt
from SimPEG.mesh import TensorMesh
n = 20
h = np.ones(n)/n
M = TensorMesh([h, h])
I = np.sin(M.gridCC[:,0]*2*np.pi)*np.sin(M.gridCC[:,1]*2*np.pi)
M.plotImage(I)
plt.show()