itom-project / itom

itom core repository
https://itom-project.github.io/
Other
14 stars 5 forks source link

Matplotlib v3.9 backend bug #291

Closed photoniker closed 3 months ago

photoniker commented 3 months ago

Plots using matplotlib 3.9 crashes with AttributeError in itom backend (demo_fill_features.py):

File "C:\itom/build_qt6/itom/itom-packages\mpl_itom\backend_itom_v3_6.py", line 567, in _draw_idle self.draw() File "C:\itom/build_qt6/itom/itom-packages\mpl_itom\backend_itom_v3_6.py", line 547, in draw self.paintEvent() File "C:\itom/build_qt6/itom/itom-packages\mpl_itom\backend_itomagg_v3_6.py", line 71, in paintEvent buf = reg.to_string_argb() # this is faster than the Qt-original version cbook._unmultiplied_rgba8888_to_premultiplied_argb32... ^^^^^^^^^^^^^^^^^^ AttributeError: 'matplotlib.backends._backend_agg.BufferRegion' object has no attribute 'to_string_argb'