Skip to main content

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)

Uploaded Source

File details

Details for the file simplemapplot-1.0.2.tar.gz.

File metadata

File hashes

Hashes for simplemapplot-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0e227eb4fe658fffe4aec8d6266afa0fd8f4b71c5ff021225b4fc2ac36b5e970
MD5 b982975ad236f87939f373ce5e79160c
BLAKE2b-256 6408e3577d20022376e2eadaae6638a03e5ea72c3b55222d04798f3e8c4f05fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page