diff --git a/docs/examples/Mag_back_1.py b/docs/examples/Mag_back_1.py index b4dd1459..4a029fb0 100644 --- a/docs/examples/Mag_back_1.py +++ b/docs/examples/Mag_back_1.py @@ -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() \ No newline at end of file +plt.show() diff --git a/setup.py b/setup.py index 9881e138..95fb3b72 100644 --- a/setup.py +++ b/setup.py @@ -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')