Skip to main content

论文实验数据绘图

Project description

paperplotlib

本项目还处于早期开发阶段, 欢迎反馈建议

codecov

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.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

paperplotlib-0.0.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file paperplotlib-0.0.4.tar.gz.

File metadata

  • Download URL: paperplotlib-0.0.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10

File hashes

Hashes for paperplotlib-0.0.4.tar.gz
Algorithm Hash digest
SHA256 61fbf866de5e02480f7140485cc80fa0873d80d4e0b9ab9efd9889b327b58155
MD5 f8af11c7942aafdd5294e2af48880bf5
BLAKE2b-256 53ce924ba493eb0177911fb00de49005dff74f34d42cddb81b39a1617e57374f

See more details on using hashes here.

File details

Details for the file paperplotlib-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: paperplotlib-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10

File hashes

Hashes for paperplotlib-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6adc25631fb2afce2df5169cc02ea75ba035053d1d5f51fc585aeebd89cb319f
MD5 d0194881b4f053f8a4b81fa9438f3987
BLAKE2b-256 e9618112a54cde9a294fdb288c4754f40e685e17f65441a32af60aba5a2f1bb9

See more details on using hashes here.

Supported by

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