diff --git a/docs/source/matplotlib_imgs/single_lmcsmc_w_radecgrid.jpg b/docs/source/matplotlib_imgs/single_lmcsmc_w_radecgrid.jpg index 053f273..4a78f41 100644 Binary files a/docs/source/matplotlib_imgs/single_lmcsmc_w_radecgrid.jpg and b/docs/source/matplotlib_imgs/single_lmcsmc_w_radecgrid.jpg differ diff --git a/mw_plot/mw_plot_matplotlib.py b/mw_plot/mw_plot_matplotlib.py index 6c81845..ef53fa9 100644 --- a/mw_plot/mw_plot_matplotlib.py +++ b/mw_plot/mw_plot_matplotlib.py @@ -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]]) @@ -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