Skip to content

Commit

Permalink
fix a bug showing tick numbers when all-sky plot + scatter + colorbar…
Browse files Browse the repository at this point in the history
… reported by Camila Navarrete
  • Loading branch information
henrysky committed Jun 10, 2024
1 parent b34797c commit e387e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mw_plot/mw_plot_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ def mw_scatter(self, ra, dec, c="r", **kwargs):
transform=self.ax.transAxes,
)
if self.cbar_flag is True:
divider = make_axes_locatable(self.ax)
cax = divider.append_axes("right", size="5%", pad=0.05)
if self._projection == "equirectangular":
divider = make_axes_locatable(self.ax)
cax = divider.append_axes("right", size="5%", pad=0.05)
cbar = self.fig.colorbar(mappable, cax=cax)
else:
cbar = self.fig.colorbar(mappable, ax=self.ax)
Expand Down

0 comments on commit e387e84

Please sign in to comment.