Hopefully fix problems with read the docs.

This commit is contained in:
rowanc1
2014-02-27 15:26:10 -08:00
parent f83c84da81
commit 5816f75728
2 changed files with 6 additions and 4 deletions
+6 -3
View File
@@ -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()
-1
View File
@@ -6,4 +6,3 @@ except ImportError, e:
os.system('mv simpeg/SimPEG temp')
os.system('rm -rf simpeg')
os.system('mv temp SimPEG')
os.system('echo export PYTHONPATH=$PYTHONPATH:'+os.path.abspath('.')+' >> ~/.bashrc')