Skip to content

Commit

Permalink
fix wrong ra/dec grid
Browse files Browse the repository at this point in the history
  • Loading branch information
henrysky committed Aug 26, 2023
1 parent 2d77f77 commit 4c28637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified docs/source/matplotlib_imgs/single_lmcsmc_w_radecgrid.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions mw_plot/mw_plot_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def initialize_mwplot(self, fig=None, ax=None):
ras = np.linspace(0, 360, 180)
des = np.linspace(i, i, 180)
l, b = radec_to_lb(ras, des, degree=True).T
l = l - 180.
l = - (l + 180) % (2 * 180) - 180
if np.max(np.diff(l)) > 2.:
idx = np.argmax(l) + 1
l = np.concatenate([l[idx:], l[:idx]])
Expand All @@ -653,7 +653,7 @@ def initialize_mwplot(self, fig=None, ax=None):
ras = np.linspace(i, i, 180)
des = np.linspace(-75, 75, 180)
l, b = radec_to_lb(ras, des, degree=True).T
l = l - 180.
l = - (l + 180) % (2 * 180) - 180
if np.max(np.diff(l)) > 0.5:
idx = np.argmax(np.diff(l))
idx = np.argmax(l) + 1
Expand Down

0 comments on commit 4c28637

Please sign in to comment.