`japanmap` is a package for Japanese map.


License
Apache-2.0
Install
pip install japanmap==0.3.1

Documentation

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.10, Pillow, Numpy, Open-CV

Features

  • nothing

Setup

$ pip install japanmap

History

0.0.1 (2016-6-7)

  • first release