graph library wrapping matplotlib
Project description
graph-nitta
matplotlibをラップしたグラフライブラリです。
Usage
pip install graph-nitta
from graph_nitta import make_graph, apply_ax_config, AxConfig, SpineConfig
# グラフ作成
fig, axes = make_graph()
# グラフにデータを追加
axes[0].plot(df[df.columns[1]], df[df.columns[2]], label="sample1")
axes[0].plot(df[df.columns[1]] * 1.1, df[df.columns[2]] * 1.1, label="sample2")
# グラフの設定
config = AxConfig(x=SpineConfig(lim=(0, 5)), y=SpineConfig(lim=(0, 1)))
apply_ax_config(axes[0], config)
fig.show()
exampleに使用例を置いています。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
graph_nitta-0.0.11.tar.gz
(191.7 kB
view hashes)
Built Distribution
Close
Hashes for graph_nitta-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c31c40502ff6b060cc51ad5a6feb6fc496ee559be505fc199e99edf556e22ee |
|
MD5 | 536e7f014def9dd67a022019acd2d68c |
|
BLAKE2b-256 | c37a5e43b85561db4ce357be64a43a8b9d9627e27722872f035372d6825c7f09 |