Documentation updates.

This commit is contained in:
Rowan Cockett
2013-09-30 10:20:23 -07:00
parent 2330ae4ec1
commit 950fcc572f
11 changed files with 120 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
import numpy as np
import matplotlib.pyplot as plt
from SimPEG 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()
+12
View File
@@ -0,0 +1,12 @@
import numpy as np
import matplotlib.pyplot as plt
from SimPEG import TensorMesh
n = 20
h = np.ones(n)/n
M = TensorMesh([h,h,h])
I = np.sin(M.gridCC[:,0]*2*np.pi)*np.sin(M.gridCC[:,1]*2*np.pi)*np.sin(M.gridCC[:,2]*2*np.pi)
M.plotImage(I, annotationColor='k')
plt.show()
+13
View File
@@ -0,0 +1,13 @@
import numpy as np
import matplotlib.pyplot as plt
from SimPEG 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()