Comments (2)
Take a look at #91 (comment), which contains a snippet to add css that affects the colormap. You could do something similar with font size probably.
from branca.
Here is a solution:
svg_style = '<style>svg#legend {font-size: 14px; background-color: white;}</style>'
map.get_root().header.add_child(folium.Element(svg_style))
You can remove the white-background if you don't need that.
from branca.
Related Issues (20)
- Saving with `pathlib` object HOT 1
- color_brewer raises KeyError if user requests more colors than what the colormap has
- Can't perform this operation for unregistered loader type HOT 2
- Is there a way to remove a child from a parent element? HOT 4
- New release HOT 2
- Branca colormap caption with apostrophe makes map does not show HOT 1
- 0.5.0: sphinx warnings `reference target not found` HOT 5
- `scheme_info` wrong copy pasta HOT 1
- Rename master to main HOT 4
- Feature request: colormap with background
- AUR Package Out-of-Date HOT 1
- Feature request: branca colormap accepted as a parameter ImageOverlay HOT 1
- Feature request: Option to change color of legend's text HOT 3
- How to show latex caption? HOT 5
- Caption not passed when converting LinearColorMap to StepColorMap HOT 1
- Expose legend_scaler's max_labels in ColorMap
- Colormap banding HOT 1
- Adding a custom colored background on a colorbar? HOT 7
- Uncaught TypeError: Cannot read property 'open' of null on branca==0.4 and above HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from branca.