Skip to content

Commit

Permalink
Fix the text location
Browse files Browse the repository at this point in the history
  • Loading branch information
e-koch committed Feb 8, 2019
1 parent 4ac46d7 commit 9bccc17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysis/co_hi_moment0_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 9bccc17

Please sign in to comment.