Plotting#
Publication-ready matplotlib figures grouped by what they visualize. All functions write a PNG to a results directory and accept optional styling overrides.
Time series#
|
Plot multiple columns as time series. |
Plot monthly energy balance with positive (PV, Export) and negative (Load, Import) bars. |
|
Compare PV production, load, import, and export by month. |
|
|
Create monthly aggregated bar charts. |
|
Create detailed weekly time series plot. |
|
Create yearly aggregated summary. |
Cost and breakeven#
|
Plot break-even analysis: PV system vs no system accumulated costs. |
|
Two-scenario break-even comparison with annotated crossover markers. |
Multi-scenario break-even comparison: N cumulative cost curves vs No-System baseline. |
|
|
Create cost projection visualization. |
Battery degradation#
Time series plot of battery State of Health (SOH) over time. |
|
Plot battery resistance growth and effective round-trip efficiency. |
|
Plot monthly battery cell temperature statistics (min, mean, max). |
|
Create battery degradation visualization. |
Tilt and azimuth optimization#
|
Scatter plot of tilt optimization results. |
|
1-D line plot of PV metric vs tilt for the East-West configuration. |
2-D scatter plot of the azimuth/tilt optimisation landscape (colour = metric). |
|
3-D surface plot of the azimuth/tilt optimisation landscape. |
Pareto front#
2×2 grid of Pareto-front scatter plots, one panel per consumption level. |
Sensitivity and Monte Carlo#
Plot SOH trajectories for different calendar aging k0 scaling factors. |
|
Show how BREOS lifetime varies across locations (temperature-dependent) while Polysun predicts the same lifetime everywhere (temperature-blind). |
|
Generate all plots for Monte Carlo simulation results. |
|
Histogram of NPV savings across all MC runs. |
|
|
Histogram of grid independence across all MC runs. |
Histogram of final battery state-of-health across one-row-per-run MC results. |
Batch comparison#
Plot a heatmap of grid independence (or other metric) vs system size. |
|
Plot a diverging heatmap of the difference in a metric between two locations. |
CO2#
|
Plot CO2 emissions avoided over system lifetime. |
Weather visualization#
Histogram of annual GHI values across historical years with TMY and mean lines. |
|
Scatter+line monthly comparison: TMY vs historical mean with 95% CI band, red min-year line, and green max-year line. |
Validation plots#
|
Plot parity (predicted vs measured) with 1:1 line. |
Plot residuals (measured - predicted) over time. |
|
Plot measured vs predicted SOH for degradation model validation. |
|
Plot calendar vs cycle aging contribution over time as stacked area. |
|
Plot measured vs predicted SOH for multiple systems on one figure. |
Presentation styling#
Enable presentation mode with larger fonts for all plots. |