pypsa.Network.explore#
- Network.explore(crs=None, tooltip=True, popup=True, tiles='OpenStreetMap', components=None)#
Create an interactive map displaying PyPSA network components using geopandas exlore() and folium.
This function generates a Folium map showing buses, lines, links, and transformers from the provided network object.
- Parameters:
n (PyPSA.Network object) – containing components buses, links, lines, transformers, generators, loads, and storage_units.
crs (str, optional. If not specified, it will check whether n.crs exists and use it, else it will default to “EPSG:4326”.) – Coordinate Reference System for the GeoDataFrames.
tooltip (bool, optional, default=True) – Whether to include tooltips (on hover) for the features.
popup (bool, optional, default=True) – Whether to include popups (on click) for the features.
tiles (str, optional, default="OpenStreetMap") – The tileset to use for the map. Options include “OpenStreetMap”, “CartoDB Positron”, and “CartoDB dark_matter”.
components (list-like, optional, default=None) – The components to plot. Default includes “Bus”, “Line”, “Link”, “Transformer”.
- Returns:
A Folium map object with the PyPSA.Network components plotted.
- Return type:
folium.Map