From 9bccc17790b1984cbcca1dd138f1f97e100009a0 Mon Sep 17 00:00:00 2001 From: e-koch Date: Fri, 8 Feb 2019 10:33:46 -0500 Subject: [PATCH] Fix the text location --- analysis/co_hi_moment0_figure.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/analysis/co_hi_moment0_figure.py b/analysis/co_hi_moment0_figure.py index 77a5b7f..9843e96 100644 --- a/analysis/co_hi_moment0_figure.py +++ b/analysis/co_hi_moment0_figure.py @@ -64,9 +64,9 @@ length = (1. * u.kpc / (840 * u.kpc)).to(u.deg, u.dimensionless_angles()) length_pix = length.value / np.abs(moment0.header['CDELT2']) -ax.plot([200, 200], [200 - length_pix / 2., 200 + length_pix / 2.], 'k', +ax.plot([200, 200], [150 - length_pix / 2., 150 + length_pix / 2.], 'k', linewidth=2) -ax.text(80, 200, +ax.text(90, 150, "1 kpc", color='k', va='center') ax.contour(np.isfinite(co_moment0.data[zoom_slice]).astype(float), levels=[0.5], @@ -104,7 +104,7 @@ ax.plot([200, 200], [150 - length_pix / 2., 150 + length_pix / 2.], 'k', linewidth=2) -ax.text(50, 150, +ax.text(90, 150, "1 kpc", color='k', va='center') ax.contour(np.isfinite(co_moment0.data[zoom_slice]).astype(float), @@ -150,7 +150,7 @@ ax.plot([200, 200], [150 - length_pix / 2., 150 + length_pix / 2.], 'k', linewidth=2) -ax.text(50, 150, +ax.text(90, 150, "1 kpc", color='k', va='center') ax.contour(np.isfinite(co_moment0.data[zoom_slice]).astype(float),