python-visualization / python-visualization/folium
Legend colorbar position and resizing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 2.3k
- Avg merge
- 17h 22m
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the folium.Choropleth() entry point and inspect how its upper-right legend is rendered. Add configurable legend position, bar size, and font size, then verify that choropleth legends can use those settings without affecting other map output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100