论文实验数据绘图
Project description
paperplotlib
本项目还处于早期开发阶段, 欢迎反馈建议
paperplotlib 是基于 matplotlib 的论文实验数据绘图库, 意在快速绘制论文实验结果部分中常见的柱状图/折线图
本库提供了一组 论文实验数据图的默认样式, 以及一组相对简洁的 API 调用
安装
pip install paperplotlib
快速开始
import paperplotlib as ppl
import numpy as np
# 随机生成一个 5 x 7 的数据
a = 5
b = 7
y = np.random.randint(10, 100, size=(a, b))
# 初始化一个对象
graph = ppl.BarGraph()
# 传入数据/组/列的文字信息
group_names = [f"group {i}" for i in range(a)]
column_names = [f"column {i}" for i in range(b)]
graph.plot_2d(y, group_names, column_names)
# 调整x/y轴文字
graph.x_label = "The number of data"
graph.y_label = "Throughput (Mbps)"
# 保存图片
graph.save()
使用文档
视频介绍: 【项目分享】论文实验数据绘图
更多使用说明请参考: paperplotlib 使用文档
参考
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
paperplotlib-0.0.5.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paperplotlib-0.0.5.tar.gz.
File metadata
- Download URL: paperplotlib-0.0.5.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0b9486e71efd9eca5952b97715b329a2bdb17d5b4a09810ad5ef800357d9b6
|
|
| MD5 |
183729dab2aa6eaf651f984d37cf5c38
|
|
| BLAKE2b-256 |
eadcceadb88630b9aeec54f93901a123a02917d42d4fa144107163d67d07af16
|
File details
Details for the file paperplotlib-0.0.5-py3-none-any.whl.
File metadata
- Download URL: paperplotlib-0.0.5-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f67e719c30aa0025326b3c16481872a4c15a09656bc4e4fa61dc40035254f8
|
|
| MD5 |
ca0896b9d7a8f15a7d104bade801c217
|
|
| BLAKE2b-256 |
d6accdf62192757f9980816743d6e615a34e49c8549afd36f9ee5fb5392cd0e2
|