Skip to content

Commit 2f8b96f

Browse files
committed
Remove use of qt6agg and qt6cairo backends, leaving qt6 gui framework
1 parent e38091f commit 2f8b96f

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,16 +1209,14 @@ def use(backend, *, force=True):
12091209
12101210
- interactive backends:
12111211
GTK3Agg, GTK3Cairo, GTK4Agg, GTK4Cairo, MacOSX, nbAgg, notebook, QtAgg,
1212-
QtCairo, TkAgg, TkCairo, WebAgg, WX, WXAgg, WXCairo, Qt5Agg, Qt5Cairo,
1213-
Qt6Agg, Qt6Cairo
1212+
QtCairo, TkAgg, TkCairo, WebAgg, WX, WXAgg, WXCairo, Qt5Agg, Qt5Cairo
12141213
12151214
- non-interactive backends:
12161215
agg, cairo, pdf, pgf, ps, svg, template
12171216
12181217
or a string of the form: ``module://my.module.name``.
12191218
1220-
notebook is a synonym for nbAgg, Qt6Agg for QtAgg, and Qt6Cairo for
1221-
QtCairo.
1219+
notebook is a synonym for nbAgg.
12221220
12231221
Switching to an interactive backend is not possible if an unrelated
12241222
event loop has already been started (e.g., switching to GTK3Agg if a

lib/matplotlib/backends/registry.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class BackendRegistry:
4646
"qtcairo": "qt",
4747
"qt5agg": "qt5",
4848
"qt5cairo": "qt5",
49-
"qt6agg": "qt",
50-
"qt6cairo": "qt",
5149
"tkagg": "tk",
5250
"tkcairo": "tk",
5351
"webagg": "webagg",
@@ -71,7 +69,7 @@ class BackendRegistry:
7169
"macosx": "macosx",
7270
"qt": "qtagg",
7371
"qt5": "qt5agg",
74-
"qt6": "qt6agg",
72+
"qt6": "qtagg",
7573
"tk": "tkagg",
7674
"wx": "wxagg",
7775
}
@@ -92,8 +90,6 @@ def __init__(self):
9290
# "module://some.backend" syntax.
9391
self._name_to_module = {
9492
"notebook": "nbagg",
95-
"qt6agg": "qtagg",
96-
"qt6cairo": "qtcairo",
9793
}
9894

9995
def _backend_module_name(self, backend):

lib/matplotlib/tests/test_backend_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_list_builtin():
4343
# Compare using sets as order is not important
4444
assert {*backends} == {
4545
'gtk3agg', 'gtk3cairo', 'gtk4agg', 'gtk4cairo', 'macosx', 'nbagg', 'notebook',
46-
'qtagg', 'qtcairo', 'qt5agg', 'qt5cairo', 'qt6agg', 'qt6cairo', 'tkagg',
46+
'qtagg', 'qtcairo', 'qt5agg', 'qt5cairo', 'tkagg',
4747
'tkcairo', 'webagg', 'wx', 'wxagg', 'wxcairo', 'agg', 'cairo', 'pdf', 'pgf',
4848
'ps', 'svg', 'template',
4949
}
@@ -54,7 +54,7 @@ def test_list_builtin():
5454
[
5555
(BackendFilter.INTERACTIVE,
5656
['gtk3agg', 'gtk3cairo', 'gtk4agg', 'gtk4cairo', 'macosx', 'nbagg', 'notebook',
57-
'qtagg', 'qtcairo', 'qt5agg', 'qt5cairo', 'qt6agg', 'qt6cairo', 'tkagg',
57+
'qtagg', 'qtcairo', 'qt5agg', 'qt5cairo', 'tkagg',
5858
'tkcairo', 'webagg', 'wx', 'wxagg', 'wxcairo']),
5959
(BackendFilter.NON_INTERACTIVE,
6060
['agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']),

0 commit comments

Comments
 (0)