Show More
@@ -41,8 +41,6 b' backends = {' | |||
|
41 | 41 | # most part it's just a reverse of the above dict, but we also need to add a |
|
42 | 42 | # few others that map to the same GUI manually: |
|
43 | 43 | backend2gui = dict(zip(backends.values(), backends.keys())) |
|
44 | # Our tests expect backend2gui to just return 'qt' | |
|
45 | backend2gui['Qt4Agg'] = 'qt' | |
|
46 | 44 | # In the reverse mapping, there are a few extra valid matplotlib backends that |
|
47 | 45 | # map to the same GUI support |
|
48 | 46 | backend2gui["GTK"] = backend2gui["GTKCairo"] = "gtk" |
@@ -50,6 +48,13 b' backend2gui["GTK3Cairo"] = "gtk3"' | |||
|
50 | 48 | backend2gui["GTK4Cairo"] = "gtk4" |
|
51 | 49 | backend2gui["WX"] = "wx" |
|
52 | 50 | backend2gui["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 | ||
|
53 | 58 | # And some backends that don't need GUI integration |
|
54 | 59 | del backend2gui["nbAgg"] |
|
55 | 60 | del backend2gui["agg"] |
General Comments 0
You need to be logged in to leave comments.
Login now