Skip to content

Commit a7e6b5f

Browse files
committed
FIX: compatibility with Matplotlib 3.10
1 parent 8ebb19a commit a7e6b5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyxrf/model/lineplot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,9 @@ def _show_preview_spectrum_plot(self):
15011501

15021502
# Remove all lines from the plot
15031503
while len(self._lines_preview):
1504-
self._lines_preview.pop().remove()
1504+
_ = self._lines_preview.pop()
1505+
if _.axes is not None:
1506+
_.remove()
15051507

15061508
# The list of color names
15071509
color_names = get_color_name()

0 commit comments

Comments
 (0)