File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141# most part it's just a reverse of the above dict, but we also need to add a
4242# few others that map to the same GUI manually:
4343backend2gui = dict (zip (backends .values (), backends .keys ()))
44- # Our tests expect backend2gui to just return 'qt'
45- backend2gui ['Qt4Agg' ] = 'qt'
4644# In the reverse mapping, there are a few extra valid matplotlib backends that
4745# map to the same GUI support
4846backend2gui ["GTK" ] = backend2gui ["GTKCairo" ] = "gtk"
4947backend2gui ["GTK3Cairo" ] = "gtk3"
5048backend2gui ["GTK4Cairo" ] = "gtk4"
5149backend2gui ["WX" ] = "wx"
5250backend2gui ["CocoaAgg" ] = "osx"
51+ # There needs to be a hysteresis here as the new QtAgg Matplotlib backend
52+ # supports either Qt5 or Qt6 and the IPython qt event loop support Qt4, Qt5,
53+ # and Qt6.
54+ backend2gui ["QtAgg" ] = "qt"
55+ backend2gui ["Qt4Agg" ] = "qt"
56+ backend2gui ["Qt5Agg" ] = "qt"
57+
5358# And some backends that don't need GUI integration
5459del backend2gui ["nbAgg" ]
5560del backend2gui ["agg" ]
You can’t perform that action at this time.
0 commit comments