Cannot pass coord_params
to underlying plotting method through plot
#627
Labels
coord_params
to underlying plotting method through plot
#627
Describe the bug
When plotting a cube with a number of dimensions higher than 2, the result of
.plot()
is an animation on the additional axes and is handled bympl_animators
.ArrayAnimatorWCS
can take a dictionarycoord_params
that can be used to apply parameters to axeslabels, ticklabels, etc. However, when I pass this dict through.plot
, I get the exception shown below. This seems to be becausendcube
is supplying its owncoord_params
, but is not accounting for a user-specifiedcoord_params
:ndcube/ndcube/visualization/mpl_plotter.py
Lines 193 to 194 in 481510b
If a user specifies
coord_params
, both are passed tompl-animators
, leading to the exception below.If this is not a bug, but rather a feature request, feel free to relabel. I did assume this would work though because the
.plot
docstring says,https://docs.sunpy.org/projects/ndcube/en/stable/api/ndcube.visualization.mpl_plotter.MatplotlibPlotter.html#ndcube.visualization.mpl_plotter.MatplotlibPlotter.plot
To Reproduce
throws the following exception
Screenshots
No response
System Details
Installation method
pip
The text was updated successfully, but these errors were encountered: