Files
simpeg/docs/examples/mesh/plot_grid_2D.py
T

12 lines
244 B
Python

import numpy as np
import matplotlib.pyplot as plt
from SimPEG.mesh import TensorMesh
h1 = np.linspace(.1,.5,3)
h2 = np.linspace(.1,.5,5)
mesh = TensorMesh([h1, h2])
mesh.plotGrid(nodes=True, faces=True, centers=True, lines=True)
plt.show()