forked from e2nIEE/pandapower
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
65,709 additions
and
72,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
############################# | ||
Matplotlib Network Plots | ||
############################# | ||
|
||
pandapower provides the functionality to translate pandapower network elements into matplotlib collections. The different collections for lines, buses or transformers can than be drawn with pyplot. | ||
|
||
If no coordinates are available for the buses, pandapower provides possibility to create generic coordinates through the igraph package. If no geocoordinates are available for the lines, they | ||
can be plotted as direct connections between the buses. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
simple_plot | ||
create_collections | ||
create_colormaps | ||
draw | ||
generic |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
############################# | ||
Built-in plot functions | ||
############################# | ||
|
||
============================= | ||
Simple Plotting | ||
============================= | ||
|
||
The function simple_plotly() can be used for simple plotting. For advanced possibilities see the tutorials. | ||
|
||
.. _simple_plotly: | ||
|
||
.. autofunction:: pandapower.plotting.plotly.simple_plotly | ||
|
||
Example plot with mv_oberrhein network from the pandapower.networks package: | ||
|
||
.. image:: /pics/simple_plotly_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
Examples plot on a map: | ||
|
||
.. image:: /pics/simple_plotly_map_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
.. image:: /pics/simple_plotly_mapsatelite_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
|
||
|
||
=============================================== | ||
Network coloring according to voltage levels | ||
=============================================== | ||
|
||
The function vlevel_plotly() is used to plot a network colored and labeled according to voltage levels. For advanced possibilities see the tutorials. | ||
|
||
.. _vlevel_plotly: | ||
|
||
.. autofunction:: pandapower.plotting.plotly.vlevel_plotly | ||
|
||
Example plot with mv_oberrhein network from the pandapower.networks package: | ||
|
||
.. image:: /pics/vlevel_plotly_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
|
||
============================= | ||
Power Flow results | ||
============================= | ||
|
||
The function pf_res_plotly() is used to plot a network according to power flow results where a colormap is used to represent line loading and voltage magnitudes. For advanced possibilities see the tutorials. | ||
|
||
.. _pf_res_plotly: | ||
|
||
.. autofunction:: pandapower.plotting.plotly.pf_res_plotly | ||
|
||
Example plot with mv_oberrhein network from the pandapower.networks package: | ||
|
||
.. image:: /pics/pf_res_plotly_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
A map plot: | ||
|
||
.. image:: /pics/pf_res_plotly_map_mvoberr_sample.png | ||
:width: 30em | ||
:align: center | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
============================== | ||
Create Traces | ||
============================== | ||
|
||
Plotly traces can be created from pandapower networks with the following functions: | ||
|
||
Bus Traces | ||
============================== | ||
|
||
.. autofunction:: pandapower.plotting.plotly.create_bus_trace | ||
|
||
|
||
|
||
Branch Traces | ||
============================== | ||
|
||
.. autofunction:: pandapower.plotting.plotly.create_line_trace | ||
|
||
.. autofunction:: pandapower.plotting.plotly.create_trafo_trace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
============================================================ | ||
Transforming network geodata from any projection to lat/long | ||
============================================================ | ||
|
||
In case network geodata are not in The World Geodetic System (WGS84), that is latitude/longitude format, but in some of the map-projections, it may be converted to lat/long by providing name of the projection (in the form ``'epsg:projection_number'`` according to `spatialreference <http://spatialreference.org/ref/epsg/>`_). | ||
A sample of converting geodata from mv_oberrhein network can be found in the tutorial. | ||
|
||
.. autofunction:: pandapower.plotting.plotly.geo_data_to_latlong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
############################# | ||
Plotly Network Plots | ||
############################# | ||
|
||
pandapower provides interactive network plots using `Plotly <https://plot.ly/python/>`_. | ||
These plots are built with arguments and functionalities to be as much as possible analogous with pandapower's | ||
matlpotlib plotting library. | ||
There is a functionality to translate pandapower network elements into plotly collections (traces). | ||
The different collections for lines, buses or transformers can than be drawn. | ||
|
||
If a network has geocoordinates, there is a possibility to represent interactive plots on `Mapbox <https://www.mapbox.com/>`_ maps. | ||
|
||
.. note:: | ||
|
||
Plots on Mapbox maps are available only considering you have a Mapbox account and a `Mapbox Access Token <https://www.mapbox.com/studio>`_ which you can add to your pandapower.plotting settings. | ||
|
||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
built-in_plots | ||
create_collections | ||
geo_data_to_latlong |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.