diff --git a/etrago/analyze/plot.py b/etrago/analyze/plot.py index 68b49732..7cbc1980 100644 --- a/etrago/analyze/plot.py +++ b/etrago/analyze/plot.py @@ -21,14 +21,14 @@ """ Plot.py defines functions necessary to plot results of eTraGo. """ -from math import log10, sqrt +from math import sqrt import logging import os from matplotlib import pyplot as plt from matplotlib.legend_handler import HandlerPatch from matplotlib.patches import Circle, Ellipse -from pyproj import Proj, transform +from pypsa.plot import draw_map_cartopy import matplotlib import matplotlib.patches as mpatches import numpy as np @@ -39,15 +39,15 @@ import cartopy.crs as ccrs except ImportError: cartopy_present = False -from pypsa.plot import draw_map_cartopy + logger = logging.getLogger(__name__) if "READTHEDOCS" not in os.environ: from etrago.execute import import_gen_from_links - from geoalchemy2.shape import to_shape + from geoalchemy2.shape import to_shape # noqa: F401 from pyproj import Proj, transform - from shapely.geometry import LineString, MultiPoint, Point, Polygon + from shapely.geometry import LineString, Point import geopandas as gpd import tilemapbase @@ -58,8 +58,9 @@ "DLR-Institute for Networked Energy Systems" ) __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" -__author__ = """ulfmueller, MarlonSchlemminger, mariusves, lukasol, ClaraBuettner, -CarlosEpia, pieterhexen, gnn, fwitte, lukasol, KathiEsterl, BartelsJ""" +__author__ = """ulfmueller, MarlonSchlemminger, mariusves, lukasol, +ClaraBuettner, CarlosEpia, pieterhexen, gnn, fwitte, lukasol, KathiEsterl, +BartelsJ""" def set_epsg_network(network):