insert_graphicΒΆ

Subplot.insert_graphic(graphic, center=True, index=0, z_position=None)ΒΆ

Insert graphic into scene at given position index in stored graphics.

Parameters:
  • graphic (Graphic) – Add a Graphic to the plot area at a given position. Note: must be a real Graphic instance, not a weakref proxy to a Graphic

  • center (bool, default True) – Center the camera on the newly added Graphic

  • index (int, default 0) – Index to insert graphic.

  • z_position (int, default None) – z axis position to place Graphic. If None, uses value of index argument