diff --git a/lib/cartopy/mpl/geoaxes.py b/lib/cartopy/mpl/geoaxes.py index d63d7150f..113ebe5f4 100644 --- a/lib/cartopy/mpl/geoaxes.py +++ b/lib/cartopy/mpl/geoaxes.py @@ -501,11 +501,12 @@ def draw(self, renderer=None, **kwargs): # caching the resulting image; # buffering the result by 10%...; if not self._done_img_factory: - for factory, args, kwargs in self.img_factories: + for factory, factory_args, factory_kwargs in self.img_factories: img, extent, origin = factory.image_for_domain( - self._get_extent_geom(factory.crs), args[0]) + self._get_extent_geom(factory.crs), factory_args[0]) self.imshow(img, extent=extent, origin=origin, - transform=factory.crs, *args[1:], **kwargs) + transform=factory.crs, *factory_args[1:], + **factory_kwargs) self._done_img_factory = True return matplotlib.axes.Axes.draw(self, renderer=renderer, **kwargs)