Skip to content

Commit

Permalink
Merge pull request #325 from dmgav/fix-mpl-remove
Browse files Browse the repository at this point in the history
Fix for the deprecated 'remove' method of ArtistList
  • Loading branch information
dmgav authored Aug 6, 2024
2 parents 843ac2f + e117ee0 commit 61012a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
host-os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11"]
numpy-version: ["1.26"]
pyqt-version: ["5.15"]
include:
Expand Down
3 changes: 2 additions & 1 deletion pyxrf/model/lineplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ def plot_vertical_marker(self, *, e_low=None, e_high=None):
y_v = (-1e30, 1e30) # This will cover the range of possible values of accumulated counts

if self.line_vertical_marker:
self._ax.lines.remove(self.line_vertical_marker)
self.line_vertical_marker.remove()
# self._ax.lines.remove(self.line_vertical_marker)
self.line_vertical_marker = None
if self.vertical_marker_is_visible:
(self.line_vertical_marker,) = self._ax.plot(x_v, y_v, color="blue")
Expand Down

0 comments on commit 61012a8

Please sign in to comment.