Answers for "set points size in geopandas plot"

0

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'])
Posted by: Guest on November-17-2020
0

set points size in geopandas plot

cities.plot(markersize=10)
Posted by: Guest on November-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language