Skip to content

Commit

Permalink
Merge pull request #819 from vasole/mpl_3.5.0
Browse files Browse the repository at this point in the history
Compatibility with matplotlib 3.5.0
  • Loading branch information
vasole authored Nov 25, 2021
2 parents 6613cae + 0ac9a8a commit 9deec9a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ script:
- pip install --upgrade pip

# Dependencies
# too slow to build fisx
- if [ "$TRAVIS_CPU_ARCH" == "ppc64le" ];
then
pip install fisx --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
else
pip install fisx;
fi
# fisx from PyPi
- pip install fisx;
- if [ "$TRAVIS_CPU_ARCH" == "ppc64le" ];
then
pip install matplotlib --pre --trusted-host www.silx.org --find-links http://www.silx.org/pub/wheelhouse/;
Expand Down
5 changes: 4 additions & 1 deletion PyMca5/PyMcaGraph/backends/MatplotlibBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,10 @@ def clearImages(self):
image = self.ax.images[i]
image.remove()
del image
del self.ax.images[i]
# in versions of matplotlib prior to 3.5.0
# the content of the if block was needed
if i < len(self.ax.images):
del self.ax.images[i]

n = list(range(len(self.ax.artists)))
n.reverse()
Expand Down
2 changes: 1 addition & 1 deletion PyMca5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
__contact__ = "sole@esrf.fr"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__version__ = "5.6.6"
__version__ = "5.6.7"

import os
import sys
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
VERSION 5.6.7
-------------

- Graphics. Fast XRF fitting results visualization not working with matplotlib 3.5.0

VERSION 5.6.6
-------------

Expand Down

0 comments on commit 9deec9a

Please sign in to comment.