Skip to content

SaitoTsutomu/japanmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages