graph library wrapping matplotlib
Project description
graph-nitta
matplotlibをラップしたグラフライブラリです。
Usage
pip install -U 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.1.0.tar.gz
(192.0 kB
view hashes)
Built Distribution
Close
Hashes for graph_nitta-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9db806b1e7f557152f8aa60e1052986e0499c42b45ed88e1f4058ced2a78d18 |
|
MD5 | c575b92421e380bf2379f7957631732d |
|
BLAKE2b-256 | 7fa615541bc500e16aa82ef95f2f69383cbc060cff20b2f5ebef7c10880f5775 |