Skip to main content

论文实验数据绘图

Project description

paperplotlib

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

paperplotlib 是基于 matplotlib 的论文实验数据绘图库, 意在快速绘制论文实验结果部分中常见的柱状图/折线图

本库提供了一组 论文实验数据图的默认样式, 以及一组相对简洁的 API 调用

一些绘制的示例代码和结果图见: paperplotlib 示例

安装

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))

group_names = [f"group {i}" for i in range(a)]
column_names = [f"column {i}" for i in range(b)]

graph = ppl.BarGraph()
graph.plot_2d(y, group_names, column_names)
graph.x_label = "The number of data"
graph.y_label = "Throughput (Mbps)"
graph.save()

使用文档: paperplotlib document

参考

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

Uploaded Source

Built Distribution

paperplotlib-0.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: paperplotlib-0.0.2.tar.gz
  • Upload date:
  • Size: 5.7 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.2.tar.gz
Algorithm Hash digest
SHA256 b80649800b22c5c644c56d22c671a0b337718332a56569dda006ff67658a1310
MD5 660c355c63f1ce75ced93bdd30eccf6d
BLAKE2b-256 7d8dbdbc0d9b5e3d06e8cefea5041d0201600927429074ac13995f9daa7adf9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paperplotlib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 928b8fa7ec4e7f7bb72156018187149bcd5e98486d4c272f1f344752b9f1af80
MD5 9a4d1c1fc17c8e0a9a3cf29129207758
BLAKE2b-256 664da40ef68cec4439149cc8d57601f1805fd640cf1a1e89d970b910595c86c7

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