Comments (1)
Hi @orijitghosh, thank you for the question! You can change the color scheme via the draw_settings
parameter of the Plot
class.
from prettymapp.settings import STYLES
print(STYLES["Peach"])
would be
{'urban': {'cmap': ['#FFC857', '#E9724C', '#C5283D'],
'ec': '#2F3737',
'lw': 0.5,
'zorder': 4},
'water': {'fc': '#a1e3ff',
'ec': '#85c9e6',
'hatch': 'ooo...',
'hatch_c': '#2F3737',
'lw': 1,
'zorder': 1},
'grassland': {'fc': '#D0F1BF', 'ec': '#2F3737', 'lw': 1, 'zorder': 2},
'woodland': {'fc': '#64B96A', 'ec': '#2F3737', 'lw': 1, 'zorder': 2},
'streets': {'fc': '#2F3737', 'zorder': 3},
'other': {'fc': '#F2F4CB', 'ec': '#2F3737', 'lw': 1, 'zorder': 3}}
Then you can switch out colors here. In the end feed it back to the Plot
class like in the example
customized_draw_settings_dictionary = STYLES["Peach"].copy()
customized_draw_settings_dictionary["water"]["fc"] = '#64B96A'
fig = Plot(
df=df,
aoi_bounds=aoi.bounds,
draw_settings=customized_draw_settings_dictionary
).plot_all()
from prettymapp.
Related Issues (20)
- Export image HOT 1
- Gallery
- Randomize button HOT 1
- Extend prettymapp docs HOT 1
- Addresses HOT 1
- Error running app HOT 4
- Converting elements to geometries can be very slow HOT 4
- Peach style having different zorders than the other styles HOT 3
- Website down HOT 2
- Error running app. If this keeps happening, please contact support. HOT 2
- https://prettymapp.streamlit.app/ HOT 4
- License? HOT 2
- Page won't load
- Seems to be broken HOT 2
- Demo not working - error page HOT 2
- A wonderful work๏ผ can I get a map without tag on the bottem right? HOT 4
- Fx_Map(Idea) HOT 1
- Radius slider lacks units HOT 1
- feature req: Plot from an osm file HOT 9
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 prettymapp.