@@ -11,8 +11,8 @@ Backends
1111What is a backend?
1212------------------
1313
14- Backends are used for out-putting Matplotlib figures (see :ref: `figure-intro `),
15- to the screen or for writing to files. A lot of documentation on the website
14+ Backends are used for displaying Matplotlib figures (see :ref: `figure-intro `),
15+ on the screen, or for writing to files. A lot of documentation on the website
1616and in the mailing lists refers to the "backend" and many new users are
1717confused by this term. Matplotlib targets many different use cases and output
1818formats. Some people use Matplotlib interactively from the Python shell and
@@ -269,48 +269,56 @@ one is being used:
269269
270270 print(matplotlib.get_backend())
271271
272- Try a simple plot, as see if the GUI opens:
272+ Try a simple plot to see if the GUI opens:
273273
274274.. code-block :: python3
275275
276276 import matplotlib
277277 import matplotlib.pyplot as plt
278278
279279 print(matplotlib.get_backend())
280- plt.plot((1,4, 6))
280+ plt.plot((1, 4, 6))
281281 plt.show()
282282
283283 If it does not, you perhaps have an installation problem. A good step at this
284284point is to ensure that your GUI toolkit is installed properly, taking
285- Matplotlib our of the testing. Almost all GUI toolkits have a small test
285+ Matplotlib out of the testing. Almost all GUI toolkits have a small test
286286program that can be run to test basic functionality. If this test fails, try re-installing.
287287
288- PyQt(5,6) and PySide
289- ^^^^^^^^^^^^^^^^^^^^
288+ QtAgg
289+ ^^^^^
290+
291+ Test ``PyQt5 ``:
290292
291293.. code-block :: bash
292294
293295 python -c " from PyQt5.QtWidgets import *; app = QApplication([]); win = QMainWindow(); win.show(); app.exec()"
294296
295- If you have ``PySide `` or ``PyQt6 `` installed instead , just change the import
297+ If you have ``PySide `` or ``PyQt6 `` installed rather than `` PyQt5 `` , just change the import
296298accordingly.
297299
298- tkinter
299- ^^^^^^^
300+ TkAgg
301+ ^^^^^
302+
303+ Test ``tkinter ``:
300304
301305.. code-block :: bash
302306
303307 python3 -c " from tkinter import Tk; Tk().mainloop()"
304308
305- GTK
306- ^^^
309+ GTK3Agg, GTK4Agg, GTK3Cairo, GTK4Cairo
310+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
311+
312+ Test ``Gtk ``:
307313
308314.. code-block :: bash
309315
310- python3 -c " from gi.repository import Gtk; win = Gtk.Window(); win.connect('destroy', Gtk.main_quit); win.show(); Gtk.main()" "
316+ python3 -c " from gi.repository import Gtk; win = Gtk.Window(); win.connect('destroy', Gtk.main_quit); win.show(); Gtk.main()"
317+
318+ wxAgg
319+ ^^^^^
311320
312- wxPython
313- ^^^^^^^^
321+ Test ``wx ``:
314322
315323.. code-block :: python3
316324
@@ -321,5 +329,5 @@ wxPython
321329 frame.Show(True) # Show the frame.
322330 app.MainLoop()
323331
324- If the test works for your desired backend then contact us (see
332+ If the test works for your desired backend but you still cannot get Matplotlib to display a figure, then contact us (see
325333:ref: `getting-help `).
0 commit comments