How to change the text of the legend of a choropleth map in Python?
问题 I get one choropleth map using the following code: %matplotlib inline import seaborn as sns import pandas as pd import pysal as ps import geopandas as gpd import numpy as np import matplotlib.pyplot as pet imd_shp = 'desktop/sgfwu/E07000222_IMD/shapefiles/E07000222.shp' imd = gpd.read_file(imd_shp) imd = imd.set_index('LSOA11CD') imd.plot(column='imd_score', scheme='fisher_jenks', alpha=0.8, k=7, colormap=plt.cm.Blues, legend=True, axes=ax1) The result is: But how can I change the text of the