Bug report
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 58, in paintEvent
memoryview(reg))
File "C:\Program Files\Python37\lib\site-packages\matplotlib\cbook\__init__.py", line 2116, in _unmultiplied_rgba8888_to_premultiplied_argb32
if alpha8.min() != 0xff:
File "C:\Program Files\Python37\lib\site-packages\numpy\core\_methods.py", line 34, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
I created some matplotlib images and impeded them in pyqt5 application. when scrolling up and down with the mouse at the window where the images are my app crashes and I do not know which line of code causing the crash.
Code for reproduction
# Paste your code here
#
#
Actual outcome
# If applicable, paste the console output here
#
#
Expected outcome
Matplotlib version
- Operating system: Windows 10 64bit
- Matplotlib version: 3.1.2
- Matplotlib backend (
print(matplotlib.get_backend())
): - Python version: ‘3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]’
- Jupyter version (if applicable): No jupyter or ipython
- Other libraries:
C:\Users\asalh>pip list
Package Version
altgraph 0.17
cycler 0.10.0
future 0.18.2
kiwisolver 1.1.0
matplotlib 3.1.2
numpy 1.18.1
pandas 0.25.3
pefile 2019.4.18
pip 19.3.1
PyInstaller 3.6
pyparsing 2.4.6
PyQt5 5.14.1
PyQt5-sip 12.7.0
python-dateutil 2.8.1
pytz 2019.3
pywin32-ctypes 0.2.0
setuptools 41.2.0
six 1.14.0
xlrd 1.2.0
pip
The Qt and PyQt versions are different, so I’d suspect there is a problem there?