pygeohydro.plot

Plot hydrological signatures.

Plots includes daily, monthly and annual hydrograph as well as regime curve (monthly mean) and flow duration curve.

Module Contents

class pygeohydro.plot.PlotDataType

Data structure for plotting hydrologic signatures.

pygeohydro.plot.cover_legends()

Colormap (cmap) and their respective values (norm) for land cover data legends.

pygeohydro.plot.descriptor_legends()

Colormap (cmap) and their respective values (norm) for land cover data legends.

pygeohydro.plot.exceedance(daily)

Compute Flow duration (rank, sorted obs).

pygeohydro.plot.prepare_plot_data(daily)

Generae a structured data for plotting hydrologic signatures.

Parameters

daily (pandas.Series or pandas.DataFrame) – The data to be processed

Returns

PlotDataType – Containing daily, ``monthly, annual, mean_monthly, ranked fields.

pygeohydro.plot.signatures(daily, precipitation=None, title=None, title_ypos=1.02, figsize=(14, 13), threshold=0.001, output=None)

Plot hydrological signatures with w/ or w/o precipitation.

Plots includes daily, monthly and annual hydrograph as well as regime curve (mean monthly) and flow duration curve. The input discharges are converted from cms to mm/day based on the watershed area, if provided.

Parameters
  • daily (pd.DataFrame or pd.Series) – The streamflows in mm/day. The column names are used as labels on the plot and the column values should be daily streamflow.

  • precipitation (pd.Series, optional) – Daily precipitation time series in mm/day. If given, the data is plotted on the second x-axis at the top.

  • title (str, optional) – The plot supertitle.

  • title_ypos (float) – The vertical position of the plot title, default to 1.02

  • figsize (tuple, optional) – Width and height of the plot in inches, defaults to (14, 13) inches.

  • threshold (float, optional) – The threshold for cutting off the discharge for the flow duration curve to deal with log 0 issue, defaults to \(1^{-3}\) mm/day.

  • output (str, optional) – Path to save the plot as png, defaults to None which means the plot is not saved to a file.