diff --git a/src/plotting/postprocessing_plotting.py b/src/plotting/postprocessing_plotting.py index 541b5976b0cf58f865a3748431f4d74c12812a68..4b7f15219ee5506f34e4fc2d76c15fb0e569394d 100644 --- a/src/plotting/postprocessing_plotting.py +++ b/src/plotting/postprocessing_plotting.py @@ -207,6 +207,7 @@ class PlotStationMap(AbstractPlotClass): """ super().__init__(plot_folder, "station_map") self._ax = None + self._gl = None self._plot(generators) self._save() @@ -214,6 +215,9 @@ class PlotStationMap(AbstractPlotClass): """Draw coastline, lakes, ocean, rivers and country borders as background on the map.""" import cartopy.feature as cfeature + + self._ax.add_feature(cfeature.LAND.with_scale("50m")) + self._ax.natural_earth_shp(resolution='50m') self._ax.add_feature(cfeature.COASTLINE.with_scale("50m"), edgecolor='black') self._ax.add_feature(cfeature.LAKES.with_scale("50m")) self._ax.add_feature(cfeature.OCEAN.with_scale("50m")) @@ -251,11 +255,16 @@ class PlotStationMap(AbstractPlotClass): """ import cartopy.crs as ccrs + from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER fig = plt.figure(figsize=(10, 5)) self._ax = fig.add_subplot(1, 1, 1, projection=ccrs.PlateCarree()) - self._ax.set_extent([0, 20, 42, 58], crs=ccrs.PlateCarree()) + self._ax.set_extent([4, 17, 44, 58], crs=ccrs.PlateCarree()) + self._gl = self._ax.gridlines(xlocs=range(0, 21, 5), ylocs=range(44, 59, 2), draw_labels=True) + self._gl.xformatter = LONGITUDE_FORMATTER + self._gl.yformatter = LATITUDE_FORMATTER self._draw_background() self._plot_stations(generators) + plt.tight_layout() @TimeTrackingWrapper