Result Plots¶
Model result visualizations: annual concentration and flux histories, surface contour plots, C-Q curves, and concentration-time smooth curves.
wrtds.plots.results
¶
Result and trend plots — annual histories, contour surfaces, C-Q curves.
plot_conc_hist(annual_results, ax=None)
¶
Annual concentration history: bars for Conc, line for FNConc.
If GenConc is present, an additional line is plotted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annual_results
|
DataFrame from |
required | |
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|
Source code in wrtds/plots/results.py
plot_flux_hist(annual_results, flux_factor=1.0, ax=None)
¶
Annual flux history: bars for Flux, line for FNFlux.
If GenFlux is present, an additional line is plotted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annual_results
|
DataFrame from |
required | |
flux_factor
|
Multiplier to convert flux units (default 1.0 = kg/day). |
1.0
|
|
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|
Source code in wrtds/plots/results.py
plot_contours(surfaces, surface_index, layer=2, ax=None)
¶
Filled contour plot of a surface layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surfaces
|
3-D array |
required | |
surface_index
|
Dict with |
required | |
layer
|
Surface layer index (default 2 = ConcHat). |
2
|
|
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|
Source code in wrtds/plots/results.py
plot_conc_q_smooth(surfaces, surface_index, years, layer=2, ax=None)
¶
Concentration-discharge curves at selected years.
Plots vertical slices through the surface at the nearest year indices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surfaces
|
3-D array |
required | |
surface_index
|
Dict with |
required | |
years
|
Sequence of years at which to plot C-Q curves. |
required | |
layer
|
Surface layer index (default 2 = ConcHat). |
2
|
|
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|
Source code in wrtds/plots/results.py
plot_conc_time_smooth(surfaces, surface_index, logq_values, layer=2, ax=None)
¶
Concentration-time curves at selected discharges.
Plots horizontal slices through the surface at the nearest LogQ indices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surfaces
|
3-D array |
required | |
surface_index
|
Dict with |
required | |
logq_values
|
Sequence of LogQ values at which to plot time curves. |
required | |
layer
|
Surface layer index (default 2 = ConcHat). |
2
|
|
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|
Source code in wrtds/plots/results.py
plot_diff_contours(surfaces1, surfaces2, surface_index, layer=2, ax=None)
¶
Difference contour plot between two surfaces.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surfaces1
|
First 3-D surface array. |
required | |
surfaces2
|
Second 3-D surface array. |
required | |
surface_index
|
Dict with |
required | |
layer
|
Surface layer index (default 2 = ConcHat). |
2
|
|
ax
|
Optional matplotlib axes. |
None
|
Returns:
| Type | Description |
|---|---|
|
|