supy.util.plot_comp

Contents

Tip

  1. Need help? Please let us know in the UMEP Community.

  2. Please report issues with the manual on the GitHub Issues.

  3. Please cite SUEWS with proper information from our Zenodo page.

6.1.3.2.7.1. supy.util.plot_comp#

supy.util.plot_comp(df_var, scatter_kws={'alpha': 0.1, 'color': 'k', 's': 0.3}, kde_kws={'levels': 4, 'shade': True, 'shade_lowest': False}, show_pdf=False, fig=None, ax=None)[source]#

Produce a scatter plot with linear regression line to compare simulation results and observations.

6.1.3.2.7.1. Parameters#

df_varpd.DataFrame

DataFrame containing variables to plot with datetime as index. Two columns, ‘Obs’ and ‘Sim’ for observations and simulation results, respectively, must exist.

scatter_kws: dict

keyword arguments passed to sns.regplot. By default, {"alpha": 0.1, "s": 0.3, "color": "k"}.

show_pdf: boolean

if a PDF overlay should be added. By default, False.

kde_kws: dict

kde_kws passed to sns.kdeplot when show_pdf=True

6.1.3.2.7.1. Returns#

MPL.figure

figure showing 1:1 line plot