question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hexbin for holoviews

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Mar 29, 2018

Now merged.

1reaction
philippjfrcommented, Feb 22, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found