Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Legend colorbar position and resizing

Open
#1,605 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

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.

Description

enhancement

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

Dominant language
Python
Stars
7.4k
Forks
2.3k
Avg merge
17h 22m
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-visualization/folium

All issues in python-visualization/folium

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.