- class cartopy.mpl.slippy_image_artist.SlippyImageArtist(ax, raster_source, **kwargs)¶
A subclass of
AxesImagewhich provides an interface for getting a raster from the given object with interactive slippy map type functionality.
Kwargs are passed to the AxesImage constructor.
Return whether the image can be composited with its neighbors.
- draw(renderer, *args, **kwargs)¶
Draw the Artist (and its children) using the given renderer.
This has no effect if the artist is not visible (
This method is overridden in the Artist subclasses.
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.