From ffe875b6260c5942d294334516e290d6bfc4636b Mon Sep 17 00:00:00 2001 From: Leonardo Uieda Date: Fri, 24 Apr 2015 19:36:25 -0300 Subject: [PATCH] x, y were backwards in the plot --- cookbook/gravmag_transform_deriv.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cookbook/gravmag_transform_deriv.py b/cookbook/gravmag_transform_deriv.py index 7591bd0f..1e1e9b64 100644 --- a/cookbook/gravmag_transform_deriv.py +++ b/cookbook/gravmag_transform_deriv.py @@ -33,40 +33,40 @@ mpl.subplot(2, 3, 1) mpl.title("x deriv (contour) + true (color map)") mpl.axis('scaled') -levels = mpl.contourf(xp, yp, gxz_true, shape, 12) +levels = mpl.contourf(yp, xp, gxz_true, shape, 12) mpl.colorbar(shrink=0.7) -mpl.contour(xp, yp, gxz, shape, 12, color='k') +mpl.contour(yp, xp, gxz, shape, 12, color='k') mpl.m2km() mpl.subplot(2, 3, 2) mpl.title("y deriv (contour) + true (color map)") mpl.axis('scaled') -levels = mpl.contourf(xp, yp, gyz_true, shape, 12) +levels = mpl.contourf(yp, xp, gyz_true, shape, 12) mpl.colorbar(shrink=0.7) -mpl.contour(xp, yp, gyz, shape, 12, color='k') +mpl.contour(yp, xp, gyz, shape, 12, color='k') mpl.m2km() mpl.subplot(2, 3, 3) mpl.title("z deriv (contour) + true (color map)") mpl.axis('scaled') -levels = mpl.contourf(xp, yp, gzz_true, shape, 8) +levels = mpl.contourf(yp, xp, gzz_true, shape, 8) mpl.colorbar(shrink=0.7) -mpl.contour(xp, yp, gzz, shape, levels, color='k') +mpl.contour(yp, xp, gzz, shape, levels, color='k') mpl.m2km() mpl.subplot(2, 3, 4) mpl.title("Difference x deriv") mpl.axis('scaled') -mpl.pcolor(xp, yp, (gxz_true - gxz), shape) +mpl.pcolor(yp, xp, (gxz_true - gxz), shape) mpl.colorbar(shrink=0.7) mpl.m2km() mpl.subplot(2, 3, 5) mpl.title("Difference y deriv") mpl.axis('scaled') -mpl.pcolor(xp, yp, (gyz_true - gyz), shape) +mpl.pcolor(yp, xp, (gyz_true - gyz), shape) mpl.colorbar(shrink=0.7) mpl.m2km() mpl.subplot(2, 3, 6) mpl.title("Difference z deriv") mpl.axis('scaled') -mpl.pcolor(xp, yp, (gzz_true - gzz), shape) +mpl.pcolor(yp, xp, (gzz_true - gzz), shape) mpl.colorbar(shrink=0.7) mpl.m2km() mpl.show()