mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 04:39:24 +08:00
14 lines
277 B
Python
14 lines
277 B
Python
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
from SimPEG.mesh import TensorMesh
|
|
|
|
x0 = np.zeros(2)
|
|
h1 = np.linspace(.1,.5,3)
|
|
h2 = np.linspace(.1,.5,5)
|
|
M = TensorMesh([h1,h2],x0)
|
|
M.plotGrid()
|
|
plt.hold()
|
|
plt.plot(M.gridN[:,0], M.gridN[:,1], 'ks', markersize=10)
|
|
plt.show()
|
|
|