`japanmap` is a package for Japanese map.
Project description
japanmap is a package for Japanese map.
import matplotlib.pyplot as plt
from japanmap import picture, get_data, pref_map
pct = picture({'北海道': 'blue'}) # numpy.ndarray
# pct = picture({1: 'blue'}) # same to above
plt.imshow(pct) # show graphics
plt.savefig('map.png') # save to PNG file
svg = pref_map(range(1,48), qpqo=get_data()) # IPython.display.SVG
print(svg.data) # SVG source
Requirements
Python 3, Numpy
Features
nothing
Setup
$ pip install japanmap
History
0.0.1 (2016-6-7)
first release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
japanmap-0.0.20.tar.gz
(167.8 kB
view details)
File details
Details for the file japanmap-0.0.20.tar.gz.
File metadata
- Download URL: japanmap-0.0.20.tar.gz
- Upload date:
- Size: 167.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76c8e5307132f935f7685adb09a51acab41c855b58ee576430e5af6bb885baaf
|
|
| MD5 |
4d1e5f3bfc1529ddc2ce1b7c06648a01
|
|
| BLAKE2b-256 |
62f6799ec40b74a9edb4cb7f1b5d4854a5f3667529eff214c35a64f239194003
|