pypsa-eur/doc/plotting.rst
Fabian Neumann 2fc1ea0255
some refactoring and code cleaning (#190)
* some refactoring and code cleaning

* execute pre-commit

* pre-commit: limit large files

* add license to .pre-commit

* add pre-commit to env

* solve: tidy memory logger

* travis: add conda list for easier debugging

* undo config test/tutorial without plotting, rm matplotlibrc, .licenses

* remove {networks} wildcard

* unadd pre-commit config

* add release notes

* restore REUSE compliance

* fix docs environment python version

* env: remove gurobi from dependencies

* fix unclean merge block

* fix elif to if

* lighter rtd style

* lighter rtd style II
2020-12-03 19:50:53 +01:00

177 lines
3.3 KiB
ReStructuredText

..
SPDX-FileCopyrightText: 2019-2020 The PyPSA-Eur Authors
SPDX-License-Identifier: CC-BY-4.0
##########################################
Plotting and Summary
##########################################
.. warning:: The corresponding code is currently under revision and has only minimal documentation.
.. _flh:
Rule ``build_country_flh``
=============================
.. graphviz::
:align: center
digraph snakemake_dag {
graph [bgcolor=white,
margin=0,
size="8,5"
];
node [fontname=sans,
fontsize=10,
penwidth=2,
shape=box,
style=rounded
];
edge [color=grey,
penwidth=2
];
0 [color="0.31 0.6 0.85",
fillcolor=gray,
label=build_country_flh,
style=filled];
1 [color="0.06 0.6 0.85",
label=base_network];
1 -> 0;
2 [color="0.42 0.6 0.85",
label=build_natura_raster];
2 -> 0;
3 [color="0.58 0.6 0.85",
label=build_shapes];
3 -> 0;
4 [color="0.14 0.6 0.85",
label=build_cutout];
4 -> 0;
}
|
.. automodule:: build_country_flh
.. _plot_potentials:
Rule ``plot_p_nom_max``
==========================
.. graphviz::
:align: center
digraph snakemake_dag {
graph [bgcolor=white,
margin=0,
size="8,5"
];
node [fontname=sans,
fontsize=10,
penwidth=2,
shape=box,
style=rounded
];
edge [color=grey,
penwidth=2
];
0 [color="0.42 0.6 0.85",
fillcolor=gray,
label=plot_p_nom_max,
style=filled];
1 [color="0.58 0.6 0.85",
label=cluster_network];
1 -> 0;
}
|
.. automodule:: plot_p_nom_max
.. _summary:
Rule ``make_summary``
========================
.. graphviz::
:align: center
digraph snakemake_dag {
graph [bgcolor=white,
margin=0,
size="8,5"
];
node [fontname=sans,
fontsize=10,
penwidth=2,
shape=box,
style=rounded
];
edge [color=grey,
penwidth=2
];
0 [color="0.47 0.6 0.85",
fillcolor=gray,
label=make_summary,
style=filled];
1 [color="0.11 0.6 0.85",
label=solve_network];
1 -> 0;
}
|
.. automodule:: make_summary
.. _summary_plot:
Rule ``plot_summary``
========================
.. graphviz::
:align: center
|
.. automodule:: plot_summary
.. _map_plot:
Rule ``plot_network``
========================
.. graphviz::
:align: center
digraph snakemake_dag {
graph [bgcolor=white,
margin=0,
size="8,5"
];
node [fontname=sans,
fontsize=10,
penwidth=2,
shape=box,
style=rounded
];
edge [color=grey,
penwidth=2
];
0 [color="0.00 0.6 0.85",
fillcolor=gray,
label=plot_network,
style=filled];
1 [color="0.50 0.6 0.85",
label=solve_network];
1 -> 0;
}
|
.. automodule:: plot_network
.. image:: img/tech-colors.png
:align: center