Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set points size in geopandas plot

import geopandas

cities = geopandas.read_file(geopandas.datasets.get_path('naturalearth_cities'))
# adding a column with random values for the size
cities['values'] = np.abs(np.random.randn(len(cities))) * 50

cities.plot(markersize=cities['values'])
Source by gis.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #set #points #size #geopandas #plot
ADD COMMENT
Topic
Name
5+6 =