cartopy.mpl.slippy_image_artist.SlippyImageArtist

class cartopy.mpl.slippy_image_artist.SlippyImageArtist(ax, raster_source, **kwargs)[source]

A subclass of AxesImage which provides an interface for getting a raster from the given object with interactive slippy map type functionality.

Kwargs are passed to the AxesImage constructor.

can_composite()[source]

Return whether the image can be composited with its neighbors.

draw(renderer, *args, **kwargs)[source]

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visible returns False).

Parameters

renderer (RendererBase subclass.) –

Notes

This method is overridden in the Artist subclasses.

get_window_extent(renderer=None)[source]

Get the axes bounding box in display space.

The bounding box’ width and height are nonnegative.

Subclasses should override for inclusion in the bounding box “tight” calculation. Default is to return an empty bounding box at 0, 0.

Be careful when using this function, the results will not update if the artist window extent of the artist changes. The extent can change due to any changes in the transform stack, such as changing the axes limits, the figure size, or the canvas used (as is done when saving a figure). This can lead to unexpected behavior where interactive figures will look fine on the screen, but will save incorrectly.