Skip to content

Commit 5fb112e

Browse files
authored
do not set clip path for cartopy>=0.18 (#40)
* do not set clip path for cartopy>=0.18 * update changelog with fix for #37
1 parent b152db2 commit 5fb112e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Fixed
1010
-----
1111
- psy-maps is now officially licensed under LGPL-3.0-only,
1212
see `#36 <https://github.com/psyplot/psy-maps/pull/36>`__
13+
- A bug has been resolved that crash makes unstructured plots fill the entire
14+
area on zooming in, see `#40 <https://github.com/psyplot/psy-maps/pull/40>`__
1315
- psy-maps is now compatible with cartopy 0.19 and 0.20
1416

1517
Changed

psy_maps/plotters.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,8 +1774,6 @@ def _polycolor(self):
17741774
self.ax.add_collection(self._plot)
17751775
if cartopy.__version__ <= "0.18":
17761776
self._plot.set_clip_path(self.ax.outline_patch)
1777-
else:
1778-
self._plot.set_clip_path(self.ax.spines["geo"])
17791777
if wrapped_arr is not None:
17801778
self.logger.debug('Making wrapped plot with %i cells',
17811779
wrapped_arr.size)
@@ -1788,8 +1786,6 @@ def _polycolor(self):
17881786
self.ax.add_collection(self._wrapped_plot)
17891787
if cartopy.__version__ <= "0.18":
17901788
self._wrapped_plot.set_clip_path(self.ax.outline_patch)
1791-
else:
1792-
self._wrapped_plot.set_clip_path(self.ax.spines["geo"])
17931789
self.logger.debug('Done.')
17941790

17951791
def remove(self, *args, **kwargs):

0 commit comments

Comments
 (0)