mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-20 12:40:44 +08:00
Hopefully fix problems with read the docs.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import sys
|
||||
sys.path.append('../../')
|
||||
|
||||
from simpegPF.MagAnalytics import MagSphereAnalFunA, IDTtoxyz
|
||||
from SimPEG import *
|
||||
import matplotlib.pyplot as plt
|
||||
@@ -30,7 +33,7 @@ Bzca = np.reshape(bz, (np.size(xr), np.size(yr)), order='F')
|
||||
fig = plt.figure( figsize = (14,5) )
|
||||
|
||||
ax1 = plt.subplot(121)
|
||||
dat1 = plt.imshow(Bzkr, extent=[min(xr), max(xr), min(yr), max(yr)]);
|
||||
dat1 = plt.imshow(Bzkr, extent=[min(xr), max(xr), min(yr), max(yr)]);
|
||||
divider = make_axes_locatable(ax1)
|
||||
cax1 = divider.append_axes("right", size="5%", pad=0.05)
|
||||
ax1.set_xlabel('East-West (m)'); ax1.set_ylabel('South-North (m)')
|
||||
@@ -38,10 +41,10 @@ plt.colorbar(dat1, cax=cax1)
|
||||
ax1.set_title('$B_z$ field at Seoul, South Korea')
|
||||
|
||||
ax2 = plt.subplot(122)
|
||||
dat2 = plt.imshow(Bzca, extent=[min(xr), max(xr), min(yr), max(yr)]);
|
||||
dat2 = plt.imshow(Bzca, extent=[min(xr), max(xr), min(yr), max(yr)]);
|
||||
divider = make_axes_locatable(ax2)
|
||||
cax2 = divider.append_axes("right", size="5%", pad=0.05)
|
||||
ax2.set_xlabel('East-West (m)'); ax2.set_ylabel('South-North (m)')
|
||||
plt.colorbar(dat2, cax=cax2)
|
||||
ax2.set_title('$B_z$ field at Vancouver, Canada')
|
||||
plt.show()
|
||||
plt.show()
|
||||
|
||||
Reference in New Issue
Block a user