I created a dataframe from shapefile using geopandas and then plotted using the gdf.plot function. I want the color values assigned to the categories of data in the following format or similar:
{'1':'black(or color hex code)',
'2':'color/#hexcode'....,
'7':'color/#hexcode'}
The plot is created using the following code:
plot = geodataframe.plot(
column='map_c',
categorical=True,
legend=True,
ax=ax,
cmap='Accent_r')
Is it possible to get this metadata from the plot?