plotting package
plotting.Heatmaps module
Generates heatmaps from a grid of simulation output files.
This script is a post-processing tool designed to visualise the results of a parameter sweep across a two-dimensional parameter space (e.g., varying the number of plumbers vs. energy advisors). It operates by scanning a directory of pickle files, where the filename of each file encodes the coordinates of that simulation run within the parameter grid.
The script performs two distinct analyses in sequence: 1. Replacements Analysis: It processes model_df pickle files, extracts the
total number of heating system replacements at specific time intervals (0, 5, 10, 15, and 20 years), and assembles this data into a matrix.
Heat Pump Adoption Analysis: It processes agent_df pickle files, counts the number of agents who have adopted a Heating_system_heat_pump at the same time intervals, and assembles this data into a matrix.
For each analysis and time interval, it generates a heatmap image visualizing the results across the parameter space and saves the underlying data matrix as a CSV file.
- Authors:
Ivan Digel <ivan.digel@uni-kassel.de>
plotting.Scenario_comparator module
plotting.plot_preferences_means module
Visualises the mean preference values of different agent milieus.
This script reads the milieu_parameters.csv input file, which contains the alpha and beta shape parameters that define agent preferences for various heating system attributes (e.g., cost, emissions). It calculates the mean preference value for each attribute and milieu from these parameters.
The script then generates and saves two distinct bar plots to visualize these preferences, allowing for easy comparison: 1. A plot grouped by milieu, showing the different attribute preferences for each. 2. A plot grouped by attribute, showing how different milieus value each one.
- Authors:
Sascha Holzhauer <sascha.holzhauer@uni-kassel.de>