[![PyPI version](https://badge.fury.io/py/hydrohyeto-matplotlib.svg)](https://badge.fury.io/py/hydrohyeto-matplotlib.svg)
# hydrohyeto_matplotlib
ハイドロ、ハイエトグラフをmatplotlibで表示します。
![demo](https://github.com/yakitoritabetai/hydrohyeto-matplotlib/blob/master/demo.png?raw=true "demo")
## 利用方法
- hydrohyeto_matplotlibをimportした後、hydrohyetoを実行します。
- グラフのラベルや凡例等のパラメータはコードの「default_kwargs」を参照してください。
```python
import hydrohyeto_matplotlib
import pandas as pd
df_o = pd.read_csv(f'demo.csv', parse_dates=['date'], index_col=0)
zz = {
'label_real': '実測値',
'title': 'デモ用',
}
fig = hydrohyeto_matplotlib.hydrohyeto(
df_o,
**zz
)
fig.savefig('demo.png')
```
### 設定値
```python
default_kwargs = {
'name_rain': '時間雨量', # DataFrameのカラム名を指定(雨量)
'name_pred': '時刻水位', # DataFrameのカラム名を指定(予測値)
'name_real': '時刻水位', # DataFrameのカラム名を指定(実測値)
'label_rain': 'Rainfall',
'label_pred': 'Proposed',
'label_real': 'Obs',
'x_interval_hour': 1,
'title': '',
'rain_ylim': (0, 60),
'lable_y1': 'Inflow$(m^{3}/s)$',
'lable_y2': 'Rainfall(mm/h)'
}
```
## インストール
```sh
# pip
pip install hydrohyeto-matplotlib
```
## 利用フォント
IPAフォントのIPAexゴシック(Ver.003.01)を利用しています。
利用にあたっては[IPAフォントライセンスv1.0](https://github.com/uehara1414/japanize-matplotlib/blob/master/japanize_matplotlib/fonts/IPA_Font_License_Agreement_v1.0.txt)に同意してください。
Raw data
{
"_id": null,
"home_page": "https://github.com/yakitoritabetai/hydrohyeto-matplotlib",
"name": "hydrohyeto-matplotlib",
"maintainer": "HAKOISHI Kenta",
"docs_url": null,
"requires_python": null,
"maintainer_email": "hakoken.of.joytoy@gmail.com",
"keywords": "matplotlib",
"author": "HAKOISHI Kenta",
"author_email": "hakoken.of.joytoy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ed/3e/d564326abf35cc0250e7ad867b985a52dba39129aecd6cf5e9f72cc98b80/hydrohyeto_matplotlib-0.1.2.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/hydrohyeto-matplotlib.svg)](https://badge.fury.io/py/hydrohyeto-matplotlib.svg)\r\n# hydrohyeto_matplotlib\r\n\u30cf\u30a4\u30c9\u30ed\u3001\u30cf\u30a4\u30a8\u30c8\u30b0\u30e9\u30d5\u3092matplotlib\u3067\u8868\u793a\u3057\u307e\u3059\u3002\r\n\r\n![demo](https://github.com/yakitoritabetai/hydrohyeto-matplotlib/blob/master/demo.png?raw=true \"demo\")\r\n\r\n## \u5229\u7528\u65b9\u6cd5\r\n- hydrohyeto_matplotlib\u3092import\u3057\u305f\u5f8c\u3001hydrohyeto\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\r\n- \u30b0\u30e9\u30d5\u306e\u30e9\u30d9\u30eb\u3084\u51e1\u4f8b\u7b49\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30b3\u30fc\u30c9\u306e\u300cdefault_kwargs\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n```python\r\nimport hydrohyeto_matplotlib\r\nimport pandas as pd\r\n\r\ndf_o = pd.read_csv(f'demo.csv', parse_dates=['date'], index_col=0)\r\n\r\nzz = {\r\n 'label_real': '\u5b9f\u6e2c\u5024',\r\n 'title': '\u30c7\u30e2\u7528',\r\n}\r\nfig = hydrohyeto_matplotlib.hydrohyeto(\r\n df_o,\r\n **zz\r\n)\r\nfig.savefig('demo.png')\r\n```\r\n\r\n### \u8a2d\u5b9a\u5024\r\n```python\r\ndefault_kwargs = {\r\n 'name_rain': '\u6642\u9593\u96e8\u91cf', # DataFrame\u306e\u30ab\u30e9\u30e0\u540d\u3092\u6307\u5b9a\uff08\u96e8\u91cf\uff09\r\n 'name_pred': '\u6642\u523b\u6c34\u4f4d', # DataFrame\u306e\u30ab\u30e9\u30e0\u540d\u3092\u6307\u5b9a\uff08\u4e88\u6e2c\u5024\uff09\r\n 'name_real': '\u6642\u523b\u6c34\u4f4d', # DataFrame\u306e\u30ab\u30e9\u30e0\u540d\u3092\u6307\u5b9a\uff08\u5b9f\u6e2c\u5024\uff09\r\n 'label_rain': 'Rainfall',\r\n 'label_pred': 'Proposed',\r\n 'label_real': 'Obs',\r\n 'x_interval_hour': 1,\r\n 'title': '',\r\n 'rain_ylim': (0, 60),\r\n 'lable_y1': 'Inflow$(m^{3}/s)$',\r\n 'lable_y2': 'Rainfall(mm/h)'\r\n}\r\n```\r\n\r\n\r\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n```sh\r\n# pip\r\npip install hydrohyeto-matplotlib\r\n```\r\n\r\n## \u5229\u7528\u30d5\u30a9\u30f3\u30c8\r\nIPA\u30d5\u30a9\u30f3\u30c8\u306eIPAex\u30b4\u30b7\u30c3\u30af(Ver.003.01)\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\r\n\u5229\u7528\u306b\u3042\u305f\u3063\u3066\u306f[IPA\u30d5\u30a9\u30f3\u30c8\u30e9\u30a4\u30bb\u30f3\u30b9v1.0](https://github.com/uehara1414/japanize-matplotlib/blob/master/japanize_matplotlib/fonts/IPA_Font_License_Agreement_v1.0.txt)\u306b\u540c\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Generate a hydrograph and a hyetograph.",
"version": "0.1.2",
"project_urls": {
"Download": "https://github.com/yakitoritabetai/hydrohyeto-matplotlib",
"Homepage": "https://github.com/yakitoritabetai/hydrohyeto-matplotlib"
},
"split_keywords": [
"matplotlib"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1ca01aebf99c59751e34d0e93991986c28321f94eb9effd21db7a98e19b90f7a",
"md5": "1ca5b3dfe96aa315b7576ea9f913dae4",
"sha256": "aa1b70dc10c15b484f73ef486370f5730507accb72909ae35f28e14d366a1026"
},
"downloads": -1,
"filename": "hydrohyeto_matplotlib-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1ca5b3dfe96aa315b7576ea9f913dae4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4427,
"upload_time": "2024-07-23T11:32:51",
"upload_time_iso_8601": "2024-07-23T11:32:51.736904Z",
"url": "https://files.pythonhosted.org/packages/1c/a0/1aebf99c59751e34d0e93991986c28321f94eb9effd21db7a98e19b90f7a/hydrohyeto_matplotlib-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed3ed564326abf35cc0250e7ad867b985a52dba39129aecd6cf5e9f72cc98b80",
"md5": "b400c54de3c33a88f3ebbf0fee4d2725",
"sha256": "303aa3bf06ceebc497f193e89fb06f2fd8980abe171bd986cf18d43f726189a4"
},
"downloads": -1,
"filename": "hydrohyeto_matplotlib-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "b400c54de3c33a88f3ebbf0fee4d2725",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4023,
"upload_time": "2024-07-23T11:32:53",
"upload_time_iso_8601": "2024-07-23T11:32:53.099859Z",
"url": "https://files.pythonhosted.org/packages/ed/3e/d564326abf35cc0250e7ad867b985a52dba39129aecd6cf5e9f72cc98b80/hydrohyeto_matplotlib-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-23 11:32:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yakitoritabetai",
"github_project": "hydrohyeto-matplotlib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "hydrohyeto-matplotlib"
}