wx4stg / pyxlma-explorer

HoloViz powered interactive display for Lightning Mapping Arrays
0 stars 1 forks source link

Cannot filter datashaded points without deleting axis and re-creating it #4

Open wx4stg opened 2 months ago

wx4stg commented 2 months ago

https://github.com/wx4stg/pyxlma-explorer/blob/36c1b7776e44b4b3ee601b3200cf27326cb7c48f/lma_data_explorer.py#L635

it is not possible to wrap this in a pn.bind call, because then the output is function instead of points (functions are not plottable wheras points are)

it is also not possible to wrap this in a hv.DynamicMap(pn.bind( as DynamicMaps cannot be datashaded

it is also not possible to wrap the points calls inside the functions (pre-shading, like, here: https://github.com/wx4stg/pyxlma-explorer/blob/36c1b7776e44b4b3ee601b3200cf27326cb7c48f/lma_data_explorer.py#L142) inside a pn.bind because this also returns a function instead of a list of kdims/vdims

wx4stg commented 1 month ago

Maybe it would be better to use HoloViz's built in link selection with a custom tool that behaves like the polygon tool (..or maybe just use the lasso...), either of which are also useful for #3