japanmap is a package for Japanese map.
Usage
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(), width=4)
# `svg.data` is SVG source
svg
Requirements
- Python 3, Pillow, Numpy, Open-CV
Setup
$ pip install japanmap
History
- 0.0.1 (2016-6-7): first release
Release files for japanmap 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| japanmap-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / japanmap-0.6.0-py3-none-any.whl
| Download URL | japanmap-0.6.0-py3-none-any.whl |
|---|---|
| Size | 161.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71a7d3756cb1d438d9f2731660801548bc8b1b5e8b8fcb4dacc8b29300282056
|
|
BLAKE2b-256 checksum How to use checksums |
6f6e12437cf21cb25229ca97e92e0831f9d2ba540103d5b3b95f9f86da9c1103
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|