Open kcpevey opened 1 year ago
I'm not completely sure, the hvplot.contour
is a holoviews problem. hvplot is doing a lot of guessing when it comes to geo stuff.
Just a note for future reference contourpy
can not be a direct dependency as it is not compatible with pyodide
.
Just a note for future reference contourpy can not be a direct dependency as it is not compatible with pyodide.
It is already a direct dependency of bokeh so we don't have to do anything to require it. I can live with contours not working in pyodide.
There is now a pyodide build of contourpy pyodide/pyodide#4102.
ALL software version info
hvplot 0.8.4 holoviews 1.16.2
Description of expected behavior and the observed behavior
I want to plot my data on a contour plot. I'm getting an empty plot.
I can plot the same data with
hvplot.quadmesh
just fineBut the
hvplot.contour
plot is empty and I get a warning about none of the projected data falling within the bounds of the plot.Complete, minimal, self-contained example code that reproduces the issue
Findings:
I was able to determine that the contour function isn't properly handling NaNs in the dataset. If you comment out the
Then there are no NaNs in the dataset and the contours plot fine.
Also, if I remove
geo=True
, the contouring works properlyFinally, adding
project=True
to the contour plot will throw an error:bathy.hvplot.contour(x='lon', y='lat', levels=1, cmap=['#000000'], geo=True, project=True, crs=ccrs.PlateCarree())
I can't tell if this is one issue or two, but I'd suggest switching the contouring to
contourpy
to improve the data handling.