我在大叶藻体的总胆囊图上,图例的比例有些错误。
我尝试使用纸槽尺寸来更改它,但是无法弄清我做错了什么。无论我输入什么数字,地图上的颜色都会改变,但是在图例上它们仍然怪异地分组
this is what the map looks like
这是代码
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
)