Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,12 +999,13 @@ def set_yticks(self, ticks, minor=False, crs=None):

return super().set_yticks(yticks, minor=minor)

def stock_img(self, name='ne_shaded'):
def stock_img(self, name='ne_shaded', **kwargs):
"""
Add a standard image to the map.

Currently, the only (and default) option is a downsampled version of
the Natural Earth shaded relief raster.
Currently, the only (and default) option for image is a downsampled
version of the Natural Earth shaded relief raster. Other options
(e.g., alpha) will be passed to :func:`GeoAxes.imshow`.

"""
if name == 'ne_shaded':
Expand All @@ -1014,7 +1015,8 @@ def stock_img(self, name='ne_shaded'):

return self.imshow(imread(fname), origin='upper',
transform=source_proj,
extent=[-180, 180, -90, 90])
extent=[-180, 180, -90, 90],
**kwargs)
else:
raise ValueError('Unknown stock image %r.' % name)

Expand Down