The numbers in a legend has the decimal points (eg. 0.00-4.80 at the top of the legend box), when I want them to be integers without decimal points. All I care is that the boundary values are integers. It doesn't matter whether a certain region in a choropleth is labelled as the category A or B, as long as the A, B and other categories are separated by the integer values so that legend box shows only integer separations.
It's because I am making these maps for publishing articles after the Korean election is over. It would be much easier for the newspaper readers to have the integer numbers in legend!
My current graph
import geopandas as gpd import matplotlib.pyplot as plt plt.xkcd() seoul=gpd.read_file('../json/seoul_municipalities_geo.json') # You can download the same file from the Github below # https://github.com/southkorea/seoul-maps/tree/master/juso/2015/json data_result.plot(figsize=(14,10),linewidth=0.25, edgecolor='black', column='ESRI_PK',cmap='Blues',scheme='quantiles',legend=True) for index,row in seoul.iterrows(): xy=row['geometry'].centroid.coords[:] xytext=row['geometry'].centroid.coords[:] plt.annotate(row['SIG_ENG_NM'],xy=xy, xytext=xytext, horizontalalignment='center',verticalalignment='center') plt.axis('off') plt.show()