更改Geopandas图解图例字体大小

时间:2020-05-17 05:10:23

标签: matplotlib fonts size legend geopandas

我想更改剧情图例中的字体大小。太小了( exported map) 这是我按照geopandas documentation的说明使用来自大熊猫的示例数据对其进行绘制的代码。

from mpl_toolkits.axes_grid1 import make_axes_locatable
fig, ax = plt.subplots(1, 1, figsize=(20,20))

divider = make_axes_locatable(ax)
cax = divider.append_axes("right", size="5%", pad=1)

dw.plot(column='pop_est', ax=ax, legend=True, cax=cax) #world choropleth
dc.plot(ax=ax, markersize=15, color='red') #cities plot
ax.axis('off')

0 个答案:

没有答案