HexTiles does behave strangely when used with hv.Dataset
See original GitHub issueI prepare a map using
tile_opts = dict(height=plot_height, xaxis=None, yaxis=None, show_grid=False,
sizing_mode="scale_both", responsive=True)
map_tiles = gts.CartoLight.opts(style=dict(alpha=1), plot=tile_opts)
Then I do a plot with lon lat given in mercator coors
points = (hv.HexTiles(data[["lon", "lat", "change"]], kdims=["lon", "lat"],
vdims=["value"])
.options(active_tools=['wheel_zoom'],tools=[hover])
.opts(colorbar=False, alpha=0.3, aggregator=np.mean, gridsize=250))
map_tiles * points
which works perfectly and plots the hexbins beautifully where they are located (Germany). However, as I am using a hv.Dataset (I want a dropdown with an additional key) like this
points_ds = gv.Dataset(data[["lon", "lat", "value", "date"]])
points = (points_ds.to(hv.HexTiles, kdims=["lon", "lat"], vdims=["value"])
.options(active_tools=['wheel_zoom'], tools=[hover])
.opts(colorbar=False, alpha=0.3, gridsize=250))
map_tiles * points
the results are pretty strange. The plot does not appear most of times and when I click through the dropdown it’s always on some other point in the map.
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (5 by maintainers)
Top Results From Across the Web
HexTiles — HoloViews v1.15.3
As a simple example we will generate 100,000 normally distributed points and plot them using HexTiles : np.random.seed(44) hex_tiles = hv.
Read more >SoLID EC Design Weekly Meeting Minutes - Experimental Hall A
96, followup: JLab test indicates the yield is 3 times lower, see SDU Ye's report on 2017/04/20, not measured, used factory gain vs....
Read more >[ganeti/ganeti_webmgr] 67ce1e5 fix merge conflicts (4944 ...
-If you want to use another database engine besides the default SQLite (not -recommended for production), then in settings edit the following lines...
Read more >Version 2.1.0.0 - GT New Horizons - Miraheze
After the update the "one Ring" will give you over time a lot of perm warp. Better not wear this ring for a...
Read more >Meetings VIII, IX, X, XI - Brookhaven National Laboratory
The average of X90 and X45 (equivalently. 0. I t - t. I. April 12th, 2002. RHXC Spin Collaboration meeting. Used data set...
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
Appears to have been fixed in #4182
No worries, thanks for the support and sorry for distracting from the main problem.
I was able do “isolate” (still sorry for the over-engineered example 😃) the problem more. Please try to execute the following.
No 1 gives me
No 2 gives me (already zoomed out because the starting graph was empty)
Exactly the same happens if I use holoviews only instead of geoviews.