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.3.tar.gz
(913.5 kB
view hashes)
Built Distribution
Close
Hashes for graph_nitta-0.1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a4bec132bb468a0b61a34d672189b4fc25b5021ea0013e013ac55abc4e123e |
|
MD5 | 96bba24b94184248e5fa31a5da1e1ffc |
|
BLAKE2b-256 | 3cf5befb81f59d077e7f3471a2d7515b27c584acdfaa5921b164e569e8d5e782 |