1

How can one delete visuals(e.g. lines) from a PlotWidget?

I have tried explicitly removing a Line from everywhere the PlotWidget adds the Line object when you call plot(), but this does not change anything on the displayed canvas.

Max Kanwal
  • 61
  • 6

1 Answers1

3

Set its parent to None:

line_obj.parent = None

johnnyRose
  • 7,310
  • 17
  • 40
  • 61
randomname
  • 31
  • 2