Plot summary all
Plots energy and cost summaries for solved networks. This script collects functions that plot across planning horizons.
plot_capacity_factors(file_list, config, techs, fig_name=None, ax=None)
Plot evolution of capacity factors for the given technologies
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summary |
required |
config
|
dict
|
the configuration for plotting (snakemake.config["plotting"]) |
required |
techs
|
list
|
the technologies to plot |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
ax
|
Axes
|
the axes to plot on. Defaults to None. |
None
|
Source code in workflow/scripts/plot_summary_all.py
plot_co2_prices(co2_prices, config, fig_name=None)
Plot the CO2 prices Args: co2_prices (dict): the CO2 prices per year (from the config) config (dict): the plotting configuration fig_name (os.PathLike, optional): the figure name. Defaults to None.
Source code in workflow/scripts/plot_summary_all.py
plot_co2_shadow_price(file_list, config, fig_name=None)
Plot the co2 price
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summaries |
required |
config
|
dict
|
the snakemake configuration |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
Source code in workflow/scripts/plot_summary_all.py
plot_electricty_heat_balance(file_list, config, fig_dir=None, plot_heat=True)
Plot the energy production and consumption
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_dirs([year/supply_energy.csv]) |
required |
config
|
dict
|
the configuration for plotting (snamkemake.config["plotting"]) |
required |
fig_dir
|
PathLike
|
the figure name. Defaults to None. |
None
|
plot_heat
|
bool
|
plot heat balances. Defaults to True. |
True
|
Source code in workflow/scripts/plot_summary_all.py
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
|
plot_energy(file_list, config, fig_name=None)
Plot the energy production and consumption
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs |
required |
config
|
dict
|
the configuration for plotting (snamkemake.config["plotting"]) |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
Source code in workflow/scripts/plot_summary_all.py
plot_expanded_capacities(file_list, config, plot_heat=False, plot_h2=True, fig_name=None)
Plot the expanded capacities
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summary |
required |
config
|
dict
|
the configuration for plotting (snakemake.config["plotting"]) |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
plot_heat
|
bool
|
plot heat capacities. Defaults to True. |
False
|
plot_h2
|
bool
|
plot hydrogen capacities. Defaults to True. |
True
|
Source code in workflow/scripts/plot_summary_all.py
plot_pathway_capacities(file_list, config, plot_heat=True, plot_h2=True, fig_name=None)
Plot the capacities
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summary |
required |
config
|
dict
|
the configuration for plotting (snakemake.config["plotting"]) |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
plot_heat
|
bool
|
plot heat capacities. Defaults to True. |
True
|
plot_h2
|
bool
|
plot hydrogen capacities. Defaults to True. |
True
|
Source code in workflow/scripts/plot_summary_all.py
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
|
plot_pathway_co2(file_list, config, fig_name=None)
Plot the CO2 pathway balance and totals
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs |
required |
config
|
dict
|
the plotting configuration |
required |
fig_name
|
_type_
|
description. Defaults to None. |
None
|
Source code in workflow/scripts/plot_summary_all.py
plot_pathway_costs(file_list, config, social_discount_rate=0.0, fig_name=None)
Plot the costs
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summary |
required |
config
|
dict
|
the configuration for plotting (snakemake.config["plotting"]) |
required |
social_discount_rate
|
float
|
the social discount rate (0.02). Defaults to 0.0. |
0.0
|
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
Source code in workflow/scripts/plot_summary_all.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
plot_prices(file_list, config, fig_name=None, absolute=False, ax=None, unit='€/MWh', **kwargs)
Plot the prices
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_list
|
list
|
the input csvs from make_summary |
required |
config
|
dict
|
the configuration for plotting (snakemake.config["plotting"]) |
required |
fig_name
|
PathLike
|
the figure name. Defaults to None. |
None
|
absolute
|
bool
|
plot absolute prices. Defaults to False. |
False
|
ax
|
Axes
|
the axes to plot on. Defaults to None. |
None
|
unit
|
str
|
the unit of the prices. Defaults to "€/MWh". |
'€/MWh'
|
Source code in workflow/scripts/plot_summary_all.py
rename_techs(label)
Rename techs into grouped categories
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label
|
Index | iterable
|
the index techs to rename |
required |
Returns: pd.Index | iterable: the renamed index / iterable
Source code in workflow/scripts/plot_summary_all.py
write_data(data_paths, outp_dir)
Write some selected data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_paths
|
dict
|
the paths to the summary data (different per year and type) |
required |
outp_dir
|
PathLike
|
target file (summary dir) |
required |