Tip
Need help? Please let us know in the SUEWS Community.
Please report issues with the manual on GitHub Issues (or use Report Issue for This Page for page-specific feedback).
Please cite SUEWS with proper information from our Zenodo page.
6.3.5.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.
- Parameters:
df_var (pd.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 (bool) – if a PDF overlay should be added. By default,
False.kde_kws (dict) –
kde_kwspassed tosns.kdeplotwhenshow_pdf=True
- Returns:
figure showing 1:1 line plot
- Return type:
MPL.figure