Metadata-Version: 2.1
Name: hydrohyeto-matplotlib
Version: 0.1.2
Summary: Generate a hydrograph and a hyetograph.
Home-page: https://github.com/yakitoritabetai/hydrohyeto-matplotlib
Download-URL: https://github.com/yakitoritabetai/hydrohyeto-matplotlib
Author: HAKOISHI Kenta
Author-email: hakoken.of.joytoy@gmail.com
Maintainer: HAKOISHI Kenta
Maintainer-email: hakoken.of.joytoy@gmail.com
License: MIT
Keywords: matplotlib
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: japanize-matplotlib

[![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)に同意してください。
