CJK font selector for matplotlib
Project description
Mpl-Font
A CJK font selector for matplotlib to display CJK characters in an easy way.
Supported Fonts
- Noto Sans CJK SC
- WenQuanYi Micro Hei
- Microsoft YaHei
Install
pip install mpl-font
Usage
Just import the font you want to use, such as
import mpl_font.noto # For Noto Sans CJK SC
import mpl_font.wqy # For WenQuanYi Micro Hei
import mpl_font.msyh # For Microsoft YaHei
Then matplotlib should be able to display CJK characters.
If the font is already imported but overwritten by others, you need to explicitly call the set
method of the font:
mpl_font.noto.set()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file mpl_font-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mpl_font-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 57.4 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40852bfec10e3edbff00d06be3aae858a00d48843485153ee2e139581469013 |
|
MD5 | 5a158ad4e36e6ff6ee9a078965d469a2 |
|
BLAKE2b-256 | 2cf2d0c33a535e4d6462d76ddeec751cc12ad1d6b8d3bd2a3b08448c8632e1d7 |