Skip to content
Snippets Groups Projects

Resolve "REFAC: Map Plot for more subsets"

Merged Ghost User requested to merge lukas_issue227_refac_map-plot-for-more-subsets into develop
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -98,7 +98,8 @@ class AbstractPlotClass:
"""Abstract plot class needs to be implemented in inheritance."""
raise NotImplementedError
def _save(self, **kwargs):
def
(self, ** kwargs):
"""Store plot locally. Name of and path to plot need to be set on initialisation."""
plot_name = os.path.join(self.plot_folder, f"{self.plot_name}.pdf")
logging.debug(f"... save plot to {plot_name}")
@@ -253,7 +254,7 @@ class PlotStationMap(AbstractPlotClass):
self._ax = None
self._gl = None
self._plot(generators)
self._save()
self._save(bbox_inches="tight")
def _draw_background(self):
"""Draw coastline, lakes, ocean, rivers and country borders as background on the map."""
Loading