Skip to content

Commit

Permalink
Merge pull request #581 from meeseeksmachine/auto-backport-of-pr-578-…
Browse files Browse the repository at this point in the history
…on-2.0

Backport PR #578 on branch 2.0 (Pass `data_unit` kwarg through when visualizing > two dimensions)
  • Loading branch information
DanRyanIrish authored Dec 20, 2022
2 parents f861d71 + ebacaff commit 20ad161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog/578.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a bug where ``data_unit`` was not being correctly passed through to the underlying plotting
function when animating a cube.
2 changes: 1 addition & 1 deletion ndcube/visualization/mpl_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def plot(self, axes=None, plot_axes=None, axes_coordinates=None,
else:
ax = self._animate_cube(plot_wcs, plot_axes=plot_axes,
axes_coordinates=axes_coordinates,
axes_units=axes_units, **kwargs)
axes_units=axes_units, data_unit=data_unit, **kwargs)

return ax

Expand Down

0 comments on commit 20ad161

Please sign in to comment.