Python 更改图例的edgecolor和textcolor

Python 更改图例的edgecolor和textcolor,python,matplotlib,geopandas,Python,Matplotlib,Geopandas,我正在尝试更改图例的edgecolor和文本颜色(请参见下面的输出) 我使用geopandas来创建geoplot fig, ax = plt.subplots(1, 1, figsize=(10,5)) divider = make_axes_locatable(ax) cax = divider.append_axes("bottom", size="5%", pad=0.2) merge.plot(ax=ax, column='Interes

我正在尝试更改图例的edgecolor和文本颜色(请参见下面的输出)

我使用geopandas来创建geoplot

fig, ax = plt.subplots(1, 1, figsize=(10,5))

divider = make_axes_locatable(ax)

cax = divider.append_axes("bottom", size="5%", pad=0.2)


merge.plot(ax=ax, column='Interest', cmap="Blues", legend=True, cax=cax, 
           legend_kwds={'label': "Interest by Country", "orientation": "horizontal"})



merge.boundary.plot(ax=ax, color="darkgray", linewidth=0.25)

ax.grid(False)
ax.axes.yaxis.set_visible(False)
ax.axes.xaxis.set_visible(False)
      
plt.show()
输出: