From 3209a4b51f28a2e327f0d7475faae7b5b93b83b0 Mon Sep 17 00:00:00 2001 From: Philipp Sommer Date: Fri, 8 Oct 2021 12:57:50 +0200 Subject: [PATCH 1/2] do not set clip path for cartopy 0.18 closes #37 --- psy_maps/plotters.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/psy_maps/plotters.py b/psy_maps/plotters.py index 08dd1fc..314fb2c 100755 --- a/psy_maps/plotters.py +++ b/psy_maps/plotters.py @@ -1774,8 +1774,6 @@ def _polycolor(self): self.ax.add_collection(self._plot) if cartopy.__version__ <= "0.18": self._plot.set_clip_path(self.ax.outline_patch) - else: - self._plot.set_clip_path(self.ax.spines["geo"]) if wrapped_arr is not None: self.logger.debug('Making wrapped plot with %i cells', wrapped_arr.size) @@ -1788,8 +1786,6 @@ def _polycolor(self): self.ax.add_collection(self._wrapped_plot) if cartopy.__version__ <= "0.18": self._wrapped_plot.set_clip_path(self.ax.outline_patch) - else: - self._wrapped_plot.set_clip_path(self.ax.spines["geo"]) self.logger.debug('Done.') def remove(self, *args, **kwargs): From 614919a0de70fc1727d71b3d5d13b53eb4da958f Mon Sep 17 00:00:00 2001 From: Philipp Sommer Date: Fri, 8 Oct 2021 13:01:10 +0200 Subject: [PATCH 2/2] update changelog with fix for #37 --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b07220d..a7aff48 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,8 @@ Fixed ----- - psy-maps is now officially licensed under LGPL-3.0-only, see `#36 `__ +- A bug has been resolved that crash makes unstructured plots fill the entire + area on zooming in, see `#40 `__ - psy-maps is now compatible with cartopy 0.19 and 0.20 Changed