Simple functions for coloring maps
Project description
This package allows you to easily create a colored map of US States or counties. For example:
#!/usr/bin/env python import simplemapplot dict_stateabbrev_value = {"TX":99, "WI":45, "IL":40, "AK":5} simplemapplot.make_us_state_map(data=dict_stateabbrev_value)
This results in a colored US state map.
Installing
Simply use pip:
pip install SimpleMapPlot
Other Examples
Create a colored map of some counties:
#!/usr/bin/env python import simplemapplot dict_fips_value = {"55025":65,"14000":90,"48650":90,"48453":90,"15009":72,"05350":45,"06067":72} simplemapplot.make_us_county_map( data=dict_fips_value, colors=["#F1EEF6", "#D4B9DA", "#C994C7", "#DF65B0", "#DD1C77", "#980043"])
- Create a colored map of some election results::
#!/usr/bin/env python
import simplemapplot
dict_stateabbrev_value = {“WA”:1,”CA”:1,”OR”:1,”NV”:0,”TX”:0, “WI”:1, “IL”:1, “AK”:0} colors = [“#F07763”,”#698DC5”] simplemapplot.make_us_state_map(data=dict_stateabbrev_value,colors=colors)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simplemapplot-1.0.2.tar.gz
(2.9 kB
view details)
File details
Details for the file simplemapplot-1.0.2.tar.gz
.
File metadata
- Download URL: simplemapplot-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e227eb4fe658fffe4aec8d6266afa0fd8f4b71c5ff021225b4fc2ac36b5e970 |
|
MD5 | b982975ad236f87939f373ce5e79160c |
|
BLAKE2b-256 | 6408e3577d20022376e2eadaae6638a03e5ea72c3b55222d04798f3e8c4f05fe |