Hexbin for holoviews
See original GitHub issueIt would be nice to have a HoloViews equivalent of the hexbin
package ( https://github.com/edzer/hexbin ), which is an extension package originally made for R
. This provides binning and plotting functions for hexagonal bins and is an alternative to the point/scatter plot. Its main feature/advantage compared to the conventional scatter plot is the ability to give a better visual feedback of the density of the points.
(edit) Existing implementations for python packages:
It seems to already have an interface to rbokeh
, see:
http://ryanhafen.com/blog/plot-lots-of-data
https://rdrr.io/cran/rbokeh/man/ly_hexbin.html
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
HexTiles — HoloViews v1.15.3
HexTiles#. Download this notebook from GitHub (right-click to download). Title: HexTiles Element#. Dependencies Bokeh. Backends Bokeh, Matplotlib.
Read more >Hexbin for holoviews · Issue #1141 - GitHub
This provides binning and plotting functions for hexagonal bins and is an alternative to the point/scatter plot. Its main feature/advantage ...
Read more >Changing the HexTiles size according to a column value
I used the following function to create the HexTiles in HoloViews, but I can't find a way to change the size according to...
Read more >Alliasing effect on hexbin - Bokeh Discourse
Cannot answer the question, but I'm curious - why even use hexbin when separate bins are visible only as dots? Or is the...
Read more >pyviz/pyviz - Gitter
Hello does holoviews polygons work with Dates as x axis? ... this same principle could be applied to e.g. polygons or hexbins, where...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now merged.
Here’s initial prototypes for both the matplotlib and bokeh implementations:
https://anaconda.org/philippjfr/hexbins/notebook
This will need some more discussion though because since aggregation doesn’t happen until plotting there is no way to normalize the color range automatically. If we had a more efficient representation for patches I’d consider storing it that way and making hexbin an operation, but I’m also considering something similar to the HeatMap element, which holds both the raw and the aggregated gridded data. The plot looks just at the aggregated data but you can apply all the usual slicing and other methods to the underlying raw data because these methods will create clones which will recompute the aggregated view. That’s also problematic though because then we depend on matplotlib to do the hexagonal aggregation and the Element can’t be created without it. Not sure what the best thing to do is yet.