Questions tagged [geoplot]
29 questions
6
votes
1 answer
How to display a heatmap on a specific parameter with geopandas?
In my very simple case I would like to display the heatmap of the points in the points GeoJSON file but not on the geographic density (lat, long). In the points file each point has a confidence property (a value from 0 to 1), how to display the…

Tim
- 513
- 5
- 20
2
votes
0 answers
Generating GeoTiff using Geopandas/GeoPlot
I have generated a plot with GeoPandas/GeoPlot and now need to upload this as a georeferenced image into some software that only takes GeoTiffs.
I have spent a significant amount of time trying to find a way of doing this but without any luck.
So,…

GalacticPonderer
- 497
- 3
- 16
2
votes
1 answer
Annotate a geoplot when using a projection
I got a dataframe with the following columns Name (string), size (num), latitude (num), longitude (num), geometry (shapely.geometry.point.Point).
When i'm plotting my points on a map and are trying to annotate each point the annotation is not shown…

Elias_sweden
- 35
- 2
2
votes
0 answers
Geoplot: ImportError: cannot import name '_PolygonPatch' from 'geopandas.plotting'
ImportError Traceback (most recent call last)
in
----> 1 import geoplot
/opt/anaconda3/envs/TF/lib/python3.7/site-packages/geoplot/__init__.py in
----> 1 from .geoplot…

Bigboss01
- 438
- 6
- 21
2
votes
0 answers
Set a common reasonable scale to display heat map suplots with a single legend
I am using geoplot's kdeplot function to display Kernel Density maps (aka heatmaps), for different periods of time.
I have a code that looks like this:
fig, axs = plt.subplots(n_rows, n_cols, figsize=(20,10))
for ax, t in zipped(axs.flatten(),…

umbe1987
- 2,894
- 6
- 35
- 63
1
vote
0 answers
Creating a Legend Based on Marker Size with Geopandas
I'm having trouble creating a legend for the marker size of the map plot I've created. The marker size is based on the number of electric buses used at each location. I am trying to create a legend that has 3 entries for 1, 10, and 50 buses.
I…

Andrew Whitman
- 11
- 2
1
vote
0 answers
Matlab: Distinguish land from ocean in harbors
I'm trying to distinguish land from ocean in harbors in Matlab. I have tried using the highest resolution maps from gshhs, but it isn't detailed enough. Below are is an example showing that it isn't detailed to the level I want. The one to the left…

henrirno
- 11
- 1
1
vote
0 answers
Custom color palette with geoplot python?
Trying to use a color palette set by work style guidelines in making a map. I successfully made the palette with seaborn
detcity =["#004445", "#279989", "#9FD5B3", "#FEB70D", "#18252A", "#F2F2F2"]
detcity =…

CKay
- 21
- 1
1
vote
1 answer
How to add labels in geopandas geoplot?
Let's say I have the following dataset:
import geopandas as gpd
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
world.plot()
What I want to achieve is to plot the data with labels, for instance, to add corresponding values of…

Avto Abashishvili
- 363
- 1
- 9
1
vote
1 answer
How to use Geoplot in Azure Functions (GEOS/PROJ issue)
I've been trying to build a python Azure function which requires Geoplot. However, when I try to deploy it I get an error message, likely due to GEOS/PROJ. Here's part of the output:
Downloading Cartopy-0.20.1.tar.gz (10.8 MB)
Installing build…

Tuk31n
- 33
- 3
1
vote
1 answer
How do you display the scale in meters, the north arrow and the axes in latitude and longitude on a map with Geopandas?
With reference to this issue, is it possible to have the scale bar (projected in meters, so 3857 for example) with the x,y axes in latitude, longitude projection (4326) and the north arrow?
I don't see a turnkey solution to do this with geopandas.…

Tim
- 513
- 5
- 20
1
vote
1 answer
Plotting a heatmap (kernel density) using geopandas + geoplot crashes session
I recently posted a question on how to plot a heatmap using geopandas. I was recommended to use geoplot.kdeplot(), but passing a projection crashes my session.
Suppose I have the following data stored in df_points and df_map respectively:
>…

Arturo Sbr
- 5,567
- 4
- 38
- 76
1
vote
2 answers
Issue installing geoplot package
When I try to install geoplot in either my Linux box or windows box the terminal either gets hung up or I get an error: unable to determine GEOS version . I checked geos version in anaconda and it states I have GEOS 3.8.
I've tried both pip install…

RogueGingerz
- 97
- 1
- 9
1
vote
0 answers
Plotting polygons with geopandas and geoplot [Python]
I am having some issues plotting a simple polygon geometry. The polygons will not plot with geoplot.
Example of the dataset (maps) I am working with:
ID
City
geometry
0
Praha
POLYGON ((-736538.020 -1053708.250,…

mieleki
- 35
- 5
1
vote
1 answer
Plotting locations on a NYC map using geopandas and geoplot
I have a file of store locations that I am trying to plot onto a NYC map. I have been using the below two links as my guide so far, but I have been unable to get the code to…

Adit2789
- 139
- 1
- 5
- 15