folium
folium copied to clipboard
Legend colorbar position and resizing
I'm having trouble visualizing the colorbar that is located in the upper right corner, when a choropleth is used. I would like to know if there is a way to specify both the location and the size of both the bar and the font.
What I'm searching is a feature that can be added to the folium.Choropleth() attribute such as
legend_position=[0.8 ,0.9]
legend_fontsize=14
legend_width=10
Width is now available:
Choropleth()
choropleth.color_scale.width =1000
Position and fontsize are not. PRs are welcome, look at the ColorMap class in our branca repo, then color_scale.js.
Other duplicate issues also requested being able to specify a position like 'topleft'.