Skip to main content

Generate a hydrograph and a hyetograph.

Project description

PyPI version

hydrohyeto_matplotlib

ハイドロ、ハイエトグラフをmatplotlibで表示します。

demo

利用方法

  • hydrohyeto_matplotlibをimportした後、hydrohyetoを実行します。
  • グラフのラベルや凡例等のパラメータはコードの「default_kwargs」を参照してください。
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')

設定値

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)'
}

インストール

# pip
pip install hydrohyeto-matplotlib

利用フォント

IPAフォントのIPAexゴシック(Ver.003.01)を利用しています。 利用にあたってはIPAフォントライセンスv1.0に同意してください。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydrohyeto_matplotlib-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

hydrohyeto_matplotlib-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file hydrohyeto_matplotlib-0.1.2.tar.gz.

File metadata

  • Download URL: hydrohyeto_matplotlib-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for hydrohyeto_matplotlib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 303aa3bf06ceebc497f193e89fb06f2fd8980abe171bd986cf18d43f726189a4
MD5 b400c54de3c33a88f3ebbf0fee4d2725
BLAKE2b-256 ed3ed564326abf35cc0250e7ad867b985a52dba39129aecd6cf5e9f72cc98b80

See more details on using hashes here.

File details

Details for the file hydrohyeto_matplotlib-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hydrohyeto_matplotlib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa1b70dc10c15b484f73ef486370f5730507accb72909ae35f28e14d366a1026
MD5 1ca5b3dfe96aa315b7576ea9f913dae4
BLAKE2b-256 1ca01aebf99c59751e34d0e93991986c28321f94eb9effd21db7a98e19b90f7a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page