Skip to content

Commit

Permalink
updated wcs.py file with additional arguments to
Browse files Browse the repository at this point in the history
set_axislabel through coord_params
  • Loading branch information
advait-zx committed Sep 21, 2024
1 parent 1b59585 commit f903ee7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mpl_animators/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ def _apply_coord_params(self, axes):

axislabel = params.get("axislabel", None)
if axislabel:
coord.set_axislabel(axislabel)
if isinstance(axislabel, dict):
coord.set_axislabel(axislabel)
else:
# Default behavior for a string label
coord.set_axislabel(axislabel)

grid = params.get("grid", None)
if grid is not None:
Expand Down

0 comments on commit f903ee7

Please sign in to comment.