remove_bg_artist

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

Remove a (background) artist from the map.

Parameters:
  • art (Artist) – The artist that should be removed.

  • layer (str or None, optional) – If provided, the artist is only searched on the provided layer, otherwise all map layers are searched. The default is None.

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

Note

This only removes the artist from the blit-manager and does not call its remove method!