System
- Windows 11
- Python 3.10
- bdsim 1.1.2
- matplotlib 3.9.2
- PyQt5 5.15.2
Running models with >> python models\model-name.py fails to refresh the animations
This is due to the default backend set to QtAgg (not Qt5Agg). (seems the '5' is dropped in matplotlib 3.9.2)
This is resolved by explicitly setting the backend atop the model-name.py file
import matplotlib
matplotlib.use('Qt5Agg') # or matplotlib.use('TkAgg')
...
Suggestion:
Add QtAgg in the backend checks in graphics.py?
elif self._simstate.backend.lower() in ["qt5agg", "qtagg"]:
Or automatically revert to mpl.use('Qt5Agg') if using QtAgg
System
Running models with
>> python models\model-name.pyfails to refresh the animationsThis is due to the default backend set to QtAgg (not Qt5Agg). (seems the '5' is dropped in matplotlib 3.9.2)
This is resolved by explicitly setting the backend atop the model-name.py file
Suggestion:
Add
QtAggin the backend checks in graphics.py?Or automatically revert to
mpl.use('Qt5Agg')if usingQtAgg