add_bg_artist

BM.add_bg_artist(art, layer=None, draw=True)

Add a background-artist to be managed. (Background artists are only updated on zoom-events… they are NOT animated!)

Parameters:
  • art (Artist) – The artist to be added. Will be set to β€˜animated’ (just to be safe). art must be in the figure associated with the canvas this class is managing.

  • layer (str or None, optional) –

    The layer name at which the artist should be drawn.

    • If β€œall”: the corresponding feature will be added to ALL layers

    The default is None in which case the layer of the base-Maps object is used.

  • draw (bool, optional) – If True, figure.draw_idle() is called after adding the artist. The default is True.