Not converting values when passed a list #47
Labels
Good First Issue
A good issue to take on if you're just getting started with nc-time-axis development
Type: Bug
Milestone
It appears that some matplotlib method pass lists of coordinates to the converting methods. Such an example is
plt.axhspan
, that passes[xmin, xmax]
toax.convert_xunits
and, thus, down tonc_time_axis.NetCDFTimeConverter.convert
. However, the latter tests fornp.ndarray
but not for lists, so it raises a ValueError.MWE:
Expected:
Result:
I hacked this into nc-time-axis (
NetCDFTimeConverter.convert
):to make it work. However, I am not an expert of matplotlib and I have no idea if this could be dangerous or if it is appropriate...
The text was updated successfully, but these errors were encountered: