Linked Questions

Popular Questions

I like the convenience of the following syntax to make maps:

import geopandas 
world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
world.plot(column='continent',legend=True,legend_kwds = {'loc':'lower left'})

However, I am looking for a way to change the shape of markers that this produces. By default (with a non-continuous variable), geopandas (or matplotlib) produces filled in circles.

I would really like these markers to be filled in rectangles with a thin black border.

I have tried using the marker parameter in plot to no success. I have also tried various arguments in legend_kwds.

Related Questions