Open LucaMarconato opened 4 months ago
I post as a note to myself also the markdown description that I wanted to add to the notebook. I'll remove it now, and
- Plotting circles vs points. In an hypotetic scenario where the user is working with hundreds of Visium HD datasets and where performance is even more important, switching to a point representation may be considered. Points have no radius so visualization would be less accurate, but this may be acceptable in favor of performance.
...
### Plotting the geometries as points
When making plots where the correct bin size (e.g. circle diameter) can be sacrified in favor of performance, and wish the rasterized approach not to be used, the user can choose to convert the geometries to points. Here is an example of converting the data.
Vector-based plotting is now faster than if plotting circles, but the rasterized-based version shown above is the fastest. Therefore we recommend it over the current one.
While updating the Visium HD notebook I have tried converting the bins to points and plotting them, and I found that this leads to an error in
spatialdata-plot
.Here is how to reproduce (I also copy-paste some markdown text as a note to myself; I am removing it from the notebook now and I'll restore it when the bug is fixed).
Traceback: