Questions tagged [geoviews]

GeoViews is a Python library that makes it easy to explore and visualize geographical, meteorological, and oceanographic datasets, such as those used in weather, climate, and remote sensing research.

  • GeoViews is built on the HoloViews library for building flexible visualizations of multidimensional data. GeoViews adds a family of geographic plot types based on the Cartopy library, plotted using either the Matplotlib or Bokeh packages. With GeoViews, you can now work easily and naturally with large, multidimensional geographic datasets, instantly visualizing any subset or combination of them, while always being able to access the raw data underlying any plot.
  • See the geoviews project page for installation instructions.
76 questions
2
votes
1 answer

Geoviews: Add a slider to choropleth map

I'm working on GeoViews and I'd like to know if we could have a slider as an input for the choropleth map in GeoViews. I've another variable in gdf, which is year. Is it possible to have a slider to show year wise Total_Crimes? Edit: Added more…
Samira Kumar
  • 509
  • 5
  • 14
1
vote
1 answer

Legend for gridded Holoviews visualization with categorical data

I'm using the holoviz xarray extension (holoviews.xarray) to visualize a gridded dataset with landcover classes. Plotting the data is straightforward with da.hvplot(). This results however in a continuous colormap with standard tick labels, whereas…
sir_olf
  • 11
  • 4
1
vote
1 answer

Delaunay Triangulation on sphere (unstructured long lat grid)

I work with an unstructured grid of weather data, and I'm trying to plot it. For that I use the Delaunay triangulation. def triangulate(vertices, x="Longitude", y="Latitude"): """ Generate a triangular mesh for the given x,y,z vertices,…
menaiseen
  • 43
  • 6
1
vote
0 answers

Interactive time-series based on x-y location on map with hvplot

When I have a very large xarray.DataArray da with only two dimensions (x and y) I normally plot using something like: da.hvplot(x="x", y="y", rasterize=True) Now, if I have a DataArray with three dimensions (x, y and time), I would like to still…
duff18
  • 672
  • 1
  • 6
  • 19
1
vote
1 answer

How to set starting zoom level in EsriImagery with datashader and bokeh?

I want to project a map with its starting position like this The current output that I get is like this import holoviews as hv from geoviews.tile_sources import EsriImagery from holoviews.operation.datashader import datashade, dynspread import…
1
vote
1 answer

Datashader: categorical colormapping of GeoDataFrames

Installed packages datashader 0.13.0 holoviews 1.14.4 geoviews 1.9.1 bokeh 2.3.2 What I'm trying to do I'm trying to recreate a choropleth map with one color mapped to one category in a large GeoDataFrame using Datashader, following this example…
grg
  • 99
  • 6
1
vote
1 answer

How can I create a customized colormap for geoviews (bokeh)?

I'm trying to plot an xarray dataset in Geoviews, like this: https://geoviews.org/gallery/bokeh/xarray_image.html#bokeh-gallery-xarray-image There I can define a colormap by cmap. The cmap is just a list of hex-codes,…
hotoats
  • 75
  • 1
  • 5
1
vote
1 answer

How to Successfully Plot a Choropleth Using gv.Polygons Instead of gv.Shape

Update 20/02/20 after further testing: I have 2 other shapefiles (one for UK by Postcode Area and one by Parl Constituency). When using gv.Shape with these I do not need to set the projection used to plot successfully, unlike with the one…
mmTmmR
  • 573
  • 2
  • 8
  • 20
1
vote
0 answers

Interactive map doesn't show up

I want to create a map with tickers like X has made here. So I tried to plot my map using geoviews: import os, numpy as np, pandas as pd, cartopy.crs as ccrs, bokeh import holoviews as hv, geoviews as gv, datashader as ds from colorcet import…
Revolucion for Monica
  • 2,848
  • 8
  • 39
  • 78
1
vote
1 answer

Geoviews: Map Tile Overlaid With UK Choropleth Fails to Align Exactly

I have a ~107K row csv based off of the Office of National Statistics Postcode Lookup file which I loaded as DataFrame df. (Please note that this link is for the original ONS file, not my altered…
mmTmmR
  • 573
  • 2
  • 8
  • 20
1
vote
1 answer

View vs. Viewable with displaying widget

I am putting together an interactive dashboard using the pyviz ecosystem. One feature of the dashboard is that the underlying data may change based on a widget selector. Below is an example code showing the issue I have with getting the time widget…
Rowan_Gaffney
  • 452
  • 5
  • 17
1
vote
1 answer

GeoViews: add a slider to chloropleth with Polygon geometries

I am trying to do something similar to the OP in this question Geoviews: Add a slider to choropleth map, but it wasn't fully answered. In brief, I have a GeoDataFrame like this: I would like to visualise pre_anom by geometry in a GeoViews map, but…
FuzzyDuck
  • 1,492
  • 12
  • 14
1
vote
1 answer

From Matplotlib Raster to Geoviews/ Holoviews / hvplot: How to transform x, y and z

I understand that Geoviews and Holoviews share common attributes, and Hvplot is meant to be a high level plotting API to all three. Now, coming from Matplotlib, I have still difficulties adapting to the parameters required to display raster images…
Alex
  • 2,784
  • 2
  • 32
  • 46
1
vote
2 answers

Holoviews combined with geoviews.tile_sources causes axis scale error

I'm trying to combine a geoviews.tile_sources layer with a datashade layer. Both layers individually result in the correct axis (see image), but when combined (using *) the scale becomes distorted. import numpy as np import pandas as pd import…
wab
  • 797
  • 6
  • 19
1
vote
1 answer

Display a path of Linestrings in GeoViews

I am trying to visualize some LINESTRINGS in a Jupyter Notebook using the Path Object in Goeviews. The Path should be colorcoded by the amount of traffic (see example below). I read the related post Displaying Paths with Geoviews and the given…
nsis
  • 33
  • 6