matplotlib_cn
Project description
matplotlib_cn
Description
matplotlib_cn is a Python package designed to simplify the use of Matplotlib for Chinese users. It provides localized documentation and examples to help users better understand and utilize Matplotlib for data visualization.
Features
- Simplified setup for Matplotlib in Chinese environments.
- Localized examples and documentation.
- Compatible with Python 3.9.
Installation
You can install the package using pip:
pip install matplotlib_cn
Usage
Here is a simple example of how to use matplotlib_cn:
from matplotlib_cn import matplotlib_chinese
matplotlib_chinese.enable_matplotlib_chinese()
# example plot with Chinese characters
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-10, 10, 100)
y = x
plt.plot(x, y)
plt.title("中文标题:y = x")
plt.xlabel("横轴(x)")
plt.ylabel("纵轴(y)")
plt.show()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matplotlib_cn-1.0.1.tar.gz
(15.7 kB
view details)
File details
Details for the file matplotlib_cn-1.0.1.tar.gz.
File metadata
- Download URL: matplotlib_cn-1.0.1.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
953619c6775cfb462f2c9dd82ea036548e5352d04f0bbf9991b3dd8722413e22
|
|
| MD5 |
aab461770864ddd4fd11027522aa98ff
|
|
| BLAKE2b-256 |
6767bebd9647dfc63cfe457b8a7a417a3726469d511a161c2e8daa943bd591a3
|