In the matplotlib example (https://pythonspot.com/pyqt5-matplotlib/):
'MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.' ax = self.figure.add_subplot(111)
This can be fixed by removing the 'self.axes' line from the __init__().
Leave a Reply:
The example works well if we change the import instructions as:
Hmm, it doesn't work. Comes up with this problem:
ImportError: No module named 'matplotlib'
Does anyone have a fix for this please?
Stuart
The module matplotlib is missing.
Installation instructions for this module can be found here: https://matplotlib.org/users/installing.html
In the matplotlib example (https://pythonspot.com/pyqt5-matplotlib/):
This can be fixed by removing the 'self.axes' line from the __init__().