diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index 2ffeb536cfd1a7fc5094ffa72c23ee8819a324d6..65f56b930b9cf6bf0252e83016d5e00c45fd5131 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -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."""