https://github.com/PyPSA/PyPSA
- HEAD
- refs/heads/FabianHofmann-patch-1
- refs/heads/FabianHofmann-patch-2
- refs/heads/FabianHofmann-patch-3
- refs/heads/FabianHofmann-patch-4
- refs/heads/KMeans1.0-deprecation
- refs/heads/add-FOM-to-ignore-spelling
- refs/heads/add-capacity-additions
- refs/heads/add_NEP_line_type
- refs/heads/add_PyPSA-SP_example
- refs/heads/add_warning_uc
- refs/heads/address-warnings
- refs/heads/adjust-statistics-alternative
- refs/heads/adjust_plotting
- refs/heads/allow-all-comps-in-global-cap-limit
- refs/heads/apply-pre-commit
- refs/heads/arrows
- refs/heads/assign-duals
- refs/heads/attrs-dtype-warning
- refs/heads/avoid-pyomo-python312
- refs/heads/binder-links
- refs/heads/bug-fix-handle-multilink
- refs/heads/bugfix-722
- refs/heads/bugfix-732
- refs/heads/bugfix-779
- refs/heads/bumb-ci-versions
- refs/heads/bump-linopy-version
- refs/heads/ci-disable-windows-conda
- refs/heads/ci-exclude-windows-python3.7
- refs/heads/ci-py3.12
- refs/heads/cluster-lifetime
- refs/heads/clustering-fix-pnl-columns
- refs/heads/clustering-marginal-cost
- refs/heads/clustering_defaults
- refs/heads/cmap-norm
- refs/heads/codestyle-fixes
- refs/heads/compression
- refs/heads/compression-fix
- refs/heads/consistency-check-fix
- refs/heads/consistency-check-refactor-1
- refs/heads/consisteny-avoid-downcast
- refs/heads/coupling-generators
- refs/heads/deprecate-lopf
- refs/heads/deprecate-pyomo-true
- refs/heads/deprecated-networkclustering
- refs/heads/deprecated-pandas-update-handling
- refs/heads/deprecation-fixes
- refs/heads/deprecations-240209
- refs/heads/discrete-investment
- refs/heads/doc-julio
- refs/heads/doc-multi-decade
- refs/heads/doc/mwe
- refs/heads/documentation-update
- refs/heads/feat/micromamba-ci
- refs/heads/fix-381
- refs/heads/fix-397
- refs/heads/fix-aggregateoneport
- refs/heads/fix-bug-UC
- refs/heads/fix-copy-multi-invest
- refs/heads/fix-curtailment-calculation
- refs/heads/fix-deprecations
- refs/heads/fix-inflow-v0.26.2
- refs/heads/fix-io-bug
- refs/heads/fix-multi-decade-lvlimit
- refs/heads/fix-netcdf-datetime-io
- refs/heads/fix-optimize-dynamic-marginal-cost
- refs/heads/fix-pyomo-attr-setter
- refs/heads/fix-pypower-test
- refs/heads/fix-ramp-limit
- refs/heads/fix-rolling-horizon-uc
- refs/heads/fix-statistics-warning
- refs/heads/fix-xarray-groupby
- refs/heads/fix-xarray-multiindex
- refs/heads/fix/807
- refs/heads/fix_unit_commitment_bug
- refs/heads/fneum/addNetworksFunction
- refs/heads/fneum/fix-duals
- refs/heads/fneum/fix-losses
- refs/heads/fneum/multilink-default-flwup
- refs/heads/fneum/multilink-default-flwup-2
- refs/heads/from-url
- refs/heads/front-end-stats
- refs/heads/geometry
- refs/heads/get-as-dense-memory-efficiency
- refs/heads/glc_bus
- refs/heads/globalconstraint-assignment
- refs/heads/highs-default
- refs/heads/iis-after-optimize
- refs/heads/import-path
- refs/heads/introduce_hac_clustering
- refs/heads/learning-sos2
- refs/heads/limit-linopy-version
- refs/heads/line-losses-stored
- refs/heads/linearised_UC-fh
- refs/heads/linopt-pandas-performance-warning
- refs/heads/linopy-docs
- refs/heads/linopy-objective-expression
- refs/heads/linopy-optimization
- refs/heads/linopy-update
- refs/heads/linopy-v0.2
- refs/heads/lkstrp-patch-1
- refs/heads/losses
- refs/heads/losses-bugfix
- refs/heads/marginal-cost-storage
- refs/heads/master
- refs/heads/matplotlib-compat
- refs/heads/max-growth-warning
- refs/heads/mga
- refs/heads/misc/missing-statistics-mv
- refs/heads/misc/pre-commit
- refs/heads/modularity_clustering
- refs/heads/move-clustering-module
- refs/heads/multilinks-default
- refs/heads/multiports-addition
- refs/heads/nan-consistency-check
- refs/heads/networkx-v2
- refs/heads/new_users
- refs/heads/no-plot-autoscale
- refs/heads/nodal_balance_check_empty
- refs/heads/numexpr-2.8.5
- refs/heads/operational-limit
- refs/heads/optimization-post-processing-fix-indexing
- refs/heads/optimize-add-kwargs
- refs/heads/optimize-future-warnings
- refs/heads/optimize-retrieve-variable
- refs/heads/optimize-rolling-horizon
- refs/heads/pandas21_fixes
- refs/heads/pc-sourcery
- refs/heads/pd-dev
- refs/heads/pendulum-snapshots
- refs/heads/plot-add-legend
- refs/heads/plot-branch-alpha
- refs/heads/plot-fix-legend-artists
- refs/heads/plot-fix-split-bus-area
- refs/heads/plot-split-circles
- refs/heads/post-discretization
- refs/heads/post-discretization-testing
- refs/heads/pre-commit-ci-update-config
- refs/heads/prep-v0.23
- refs/heads/prep-v0.24
- refs/heads/prep-v0.25
- refs/heads/prep-v0.25.1
- refs/heads/prep-v0.26
- refs/heads/prep-v0.27.1
- refs/heads/prepare-release-v0.27
- refs/heads/py311
- refs/heads/pydata-doc-theme
- refs/heads/redispatch-example
- refs/heads/reenable-solver-opts
- refs/heads/refactor-consistency-check
- refs/heads/release-v0.20
- refs/heads/release-v0.20.1
- refs/heads/remove-ancient-examples
- refs/heads/remove-dubplicated-linopy
- refs/heads/remove-n-mode
- refs/heads/remove-n_mod
- refs/heads/remove-networkclustering
- refs/heads/remove-pyomo
- refs/heads/remove-website
- refs/heads/requests-optional-dep
- refs/heads/retain-inv-period-cluster
- refs/heads/revert-628-move-clustering-module
- refs/heads/sclopf-num-parallel
- refs/heads/shadowprices
- refs/heads/shapes-component
- refs/heads/smk-threads
- refs/heads/sourcery/highs-default
- refs/heads/sourcery/master
- refs/heads/sp
- refs/heads/spatial-cluster-refactor
- refs/heads/speed-up-import
- refs/heads/speed-up-model-creation
- refs/heads/split-investment-fom
- refs/heads/statistics-aggregate-time-fix
- refs/heads/statistics-by-country
- refs/heads/statistics-fix
- refs/heads/statistics-marginal_cost
- refs/heads/statistics-refactor
- refs/heads/statistics-sector-alternative
- refs/heads/statistics-sum
- refs/heads/statistics-to-init
- refs/heads/subnetwork-iterate-components
- refs/heads/tep
- refs/heads/tep-v2
- refs/heads/test-fix-colorbar
- refs/heads/test/py3.10
- refs/heads/time-dep-efficiencies
- refs/heads/uc-fix
- refs/heads/uc-links
- refs/heads/update-doc-env
- refs/heads/update-examples-to-linopy-framework
- refs/heads/update-power-to-gas-boiler-to-linopy
- refs/heads/update-statistics-documentation
- refs/heads/users/jrc
- refs/heads/v0.21-prep
- refs/heads/v0.21.1-prep
- refs/heads/v0.22-prep
- refs/tags/v0.10.0
- refs/tags/v0.11.0
- refs/tags/v0.12.0
- refs/tags/v0.13.0
- refs/tags/v0.13.1
- refs/tags/v0.13.2
- refs/tags/v0.14.0
- refs/tags/v0.14.1
- refs/tags/v0.15.0
- refs/tags/v0.16.0
- refs/tags/v0.16.1
- refs/tags/v0.17.0
- refs/tags/v0.17.1
- refs/tags/v0.18.0
- refs/tags/v0.3.0
- refs/tags/v0.3.1
- refs/tags/v0.3.2
- refs/tags/v0.3.3
- refs/tags/v0.4.0
- refs/tags/v0.4.1
- refs/tags/v0.4.2
- refs/tags/v0.5.0
- refs/tags/v0.6.0
- refs/tags/v0.6.1
- refs/tags/v0.6.2
- refs/tags/v0.7.0
- refs/tags/v0.7.1
- refs/tags/v0.8.0
- refs/tags/v0.9.0
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.![swh spinner](/static/img/swh-spinner.gif)
Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: aa5474e13462ae4889296a0115b095803fb3f5db authored by Fabian Neumann on 06 October 2022, 12:55:38 UTC
Merge pull request #460 from PyPSA/release-v0.20.1
Merge pull request #460 from PyPSA/release-v0.20.1
Tip revision: aa5474e
plotting.rst
######################
Plotting Networks
######################
PyPSA has several functions available for plotting networks with
different colors/widths/labels on buses and branches.
Static plotting with matplotlib
===============================
Static plots of networks can be created that use the library
`matplotlib <https://matplotlib.org/>`_. This is meant for use with
`Jupyter notebooks <https://jupyter.org/>`_, but can also be used to
generate image files.
To plot a network with matplotlib run
``network.plot()``, see :py:meth:`pypsa.Network.plot` for details.
See also the `SciGRID matplotlib example
<https://pypsa.readthedocs.io/en/latest/examples/scigrid-lopf-then-pf.html>`_ and the `Flow plotting matplotlib example
<https://pypsa.readthedocs.io/en/latest/examples/flow-plot.html>`_.
Interactive plotting with plotly
================================
Interactive plots of networks can be created that use the `d3js
<https://d3js.org/>`_-based library `plotly
<https://plot.ly/python/>`_ (this uses JavaScript and SVGs). This is
meant for use with `Jupyter notebooks <https://jupyter.org/>`_.
To plot a network with plotly run
``network.iplot()``, see :py:meth:`pypsa.Network.iplot` for details.