Skip to main content

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.8.
  • Supports Google Colab and Jupyter Notebook!

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_util

matplotlib_util.enable_chinese()
# example 
import numpy as np
import matplotlib.pyplot as plt

from matplotlib_cn import matplotlib_util
matplotlib_util.enable_chinese()

x = np.linspace(-10, 10, 100)
y = x

plt.plot(x, y)
plt.title("中文标题:y = x")
plt.xlabel("横轴(x)")
plt.ylabel("纵轴(y)")
plt.show()

Build & upload to pypi (For Developers)

prerequirement: twine is installed. If not, run the following command to install it:

pip install -U twine

build and upload:

## package
python setup.py sdist

## upload
twine upload dist/*

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.5.tar.gz (5.3 MB view details)

Uploaded Source

File details

Details for the file matplotlib_cn-1.0.5.tar.gz.

File metadata

  • Download URL: matplotlib_cn-1.0.5.tar.gz
  • Upload date:
  • Size: 5.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for matplotlib_cn-1.0.5.tar.gz
Algorithm Hash digest
SHA256 71da16a8e091890a36410eb189d8a6a85acfbaaec47e3e8eed80a13cd3895e2f
MD5 b2de579d94abb7480d34cbac0e4d377c
BLAKE2b-256 9bc679204aaf5204cc3be91a97b74c7752f78e3d6185f280a991a60eee22f782

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page