You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is obviously useful, especially for larger grids.
Althought not every 2D grid is triangular, it can be easily triangulated (which is done for a number of plotting methods, since matplotlib can will only draw contours for triangles e.g.).
The following suffices for Ugrid2d topologies in the _PlotMethods accessor:
The datashader/holoviews isn't entirely obvious to me. Should we add (more) methods to let it resemble the "standard" plotting arguments (i.e. like xarray/matplotlib?)
Should we default to bokeh/matplotlib as the extension? Not setting it results in nothing being shown.
Having to call rasterize yourself is a bit annoying. Something like .ugrid.holoviews.plot() could be an option but:
We're stacking a lot of accessors...
There are arguments for both the rasterize function as well as the plotting options. Should they be combined?
Secondly, there's a package called hvplot: https://hvplot.holoviz.org/
It adds an hvplot and interactive accessor to dataframes and xarray objects. This seems like it's more work, because it actually does data selection.
The text was updated successfully, but these errors were encountered:
Holoviews and Datashader supports TriMesh/trimesh (resp.):
https://datashader.org/user_guide/Trimesh.html
This is obviously useful, especially for larger grids.
Althought not every 2D grid is triangular, it can be easily triangulated (which is done for a number of plotting methods, since matplotlib can will only draw contours for triangles e.g.).
The following suffices for Ugrid2d topologies in the _PlotMethods accessor:
Then, to draw something:
What makes it not totally trivial:
Having to call rasterize yourself is a bit annoying. Something like
.ugrid.holoviews.plot()
could be an option but:Secondly, there's a package called
hvplot
: https://hvplot.holoviz.org/It adds an
hvplot
andinteractive
accessor to dataframes and xarray objects. This seems like it's more work, because it actually does data selection.The text was updated successfully, but these errors were encountered: