From b76e8199406e3b31106e3b222485d8a1a0592640 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Tue, 8 Dec 2020 16:43:50 +0100 Subject: [PATCH] PlotStationMap has now tight bbox_inches to prevent axis label cut-off --- mlair/plotting/postprocessing_plotting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index 2ffeb536..65f56b93 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.""" -- GitLab