Fixed error by deleting line object directly.
There is no need to call an ArtistList when can just delete the artist directly.
Description of work:
Fixed a bug where removing Bragg peak lines caused an unhanded error. This happened due to matplotib having been updated, and the object ArtistList no longer supporting a remove() method.
To test:
Open a slice plot > Information > Bragg peaks > select some bragg peaks
Then try to deselect any bragg peak
The Bragg peak lines should be removed from the plot.
Fixed error by deleting line object directly. There is no need to call an ArtistList when can just delete the artist directly.
Description of work: Fixed a bug where removing Bragg peak lines caused an unhanded error. This happened due to matplotib having been updated, and the object ArtistList no longer supporting a remove() method.
To test: Open a slice plot > Information > Bragg peaks > select some bragg peaks Then try to deselect any bragg peak The Bragg peak lines should be removed from the plot.
Fixes #967 .