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.2.1.tar.gz
(897.8 kB
view hashes)
Built Distribution
Close
Hashes for graph_nitta-0.1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7f9c0c763883bcc8e0c380ced0612e5e25be83b68c4c49f3ba849f6d2a4dcd |
|
MD5 | fcf712010f5a5dcc1e9d647a0767f3e6 |
|
BLAKE2b-256 | 47cff5329be84b1347f1e4b8ce931e53a886e1048d8fd7c3865a38855c83b6bf |