Legend 如何更改图例比例-folium choropleth地图

Legend 如何更改图例比例-folium choropleth地图,legend,choropleth,folium,Legend,Choropleth,Folium,我在荷叶中的乔洛佩斯地图上的图例比例有些错误 我曾尝试使用垃圾箱的大小来改变它,但无法找出我做错了什么。无论我输入什么数字,lgend在地图上的颜色上都会发生变化,但它们在图例上的分组仍然很奇怪 这是密码 bins = list(dfForces1['Total'].quantile([0, 0.1, 0.2, 0.3,0.5,0.6,0.7,0.8,0.9, 1])) m1 = folium.Map(location=[50, 3], zoom_start=6.5, tiles='Mapbo

我在荷叶中的乔洛佩斯地图上的图例比例有些错误

我曾尝试使用垃圾箱的大小来改变它,但无法找出我做错了什么。无论我输入什么数字,lgend在地图上的颜色上都会发生变化,但它们在图例上的分组仍然很奇怪

这是密码

bins = list(dfForces1['Total'].quantile([0, 0.1, 0.2, 0.3,0.5,0.6,0.7,0.8,0.9, 1]))
m1 = folium.Map(location=[50, 3], zoom_start=6.5, tiles='Mapbox Bright')
m1.choropleth(
    geo_data=forces_json, #this is reading the geographical data from the json file
    data=dfForces1, #this is reading my df
    columns=['Police force sent NRM referral for Crime Recording', 'Total'], #which columns do I want it to read
    key_on='feature.properties.objectid',
    fill_color='YlGn',
    fill_opacity=0.8,
    line_opacity=0.3,
    bins= bins,
    nan_fill_color = 'white',
    legend_name='Number of NRM Referrals Received',
    highlight=True
)