@@ -292,14 +292,12 @@ program that can be run to test basic functionality. If this test fails, try re
292292QtAgg, QtCairo, Qt5Agg, and Qt5Cairo
293293^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294294
295- Test ``PyQt5 ``.
296-
297- If you have ``PySide `` or ``PyQt6 `` installed rather than ``PyQt5 ``, just change the import
298- accordingly:
295+ Test ``PyQt6 `` (if you have ``PyQt5 ``, ``PySide2 `` or ``PySide6 `` installed
296+ rather than ``PyQt6 ``, just change the import accordingly):
299297
300298..code-block ::bash
301299
302- python -c" fromPyQt5 .QtWidgets import *; app = QApplication([]); win = QMainWindow(); win.show(); app.exec()"
300+ python3 -c" fromPyQt6 .QtWidgets import *; app = QApplication([]); win = QMainWindow(); win.show(); app.exec()"
303301
304302
305303 TkAgg and TkCairo
@@ -325,14 +323,9 @@ wxAgg and wxCairo
325323
326324Test ``wx ``:
327325
328- ..code-block ::python3
329-
330- import wx
326+ ..code-block ::bash
331327
332- app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window.
333- frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
334- frame.Show(True) # Show the frame.
335- app.MainLoop()
328+ python3 -c" import wx; app = wx.App(); frame = wx.Frame(None); frame.Show(); app.MainLoop()"
336329
337330 If the test works for your desired backend but you still cannot get Matplotlib to display a figure, then contact us (see
338331:ref: `get-help `).