@@ -12,17 +12,16 @@ What is a backend?
12
12
------------------
13
13
14
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
16
- documentation on the website and in the mailing lists refers to the "backend"
17
- and many new users are confused by this term. Matplotlib targets many different
18
- use cases and output formats. Some people use Matplotlib interactively from
19
- the Python shell and have plotting windows pop up when they type commands.
20
- Some people run `Jupyter <https://jupyter.org >`_ notebooks and draw inline
21
- plots for quick data analysis. Others embed Matplotlib into graphical user
22
- interfaces like PyQt or PyGObject to build rich applications. Some people use
23
- Matplotlib in batch scripts to generate postscript images from numerical
24
- simulations, and still others run web application servers to dynamically serve
25
- up graphs.
15
+ to the screen or for writing to files. A lot of documentation on the website
16
+ and in the mailing lists refers to the "backend" and many new users are
17
+ confused by this term. Matplotlib targets many different use cases and output
18
+ formats. Some people use Matplotlib interactively from the Python shell and
19
+ have plotting windows pop up when they type commands. Some people run `Jupyter
20
+ <https://jupyter.org> `_ notebooks and draw inline plots for quick data
21
+ analysis. Others embed Matplotlib into graphical user interfaces like PyQt or
22
+ PyGObject to build rich applications. Some people use Matplotlib in batch
23
+ scripts to generate postscript images from numerical simulations, and still
24
+ others run web application servers to dynamically serve up graphs.
26
25
27
26
To support all of these use cases, Matplotlib can target different
28
27
outputs, and each of these capabilities is called a backend; the
@@ -286,8 +285,8 @@ point is to ensure that your GUI toolkit is installed properly, taking
286
285
Matplotlib our of the testing. Almost all GUI toolkits have a small test
287
286
program that can be run to test basic functionality. If this test fails, try re-installing.
288
287
289
- PyQT
290
- ^^^^
288
+ PyQt(5,6) and PySide
289
+ ^^^^^^^^^^^^^^^^^^^^
291
290
292
291
.. code-block :: bash
293
292
@@ -296,12 +295,19 @@ PyQT
296
295
If you have ``PySide `` or ``PyQT6 `` installed instead, just change the import
297
296
accordingly
298
297
298
+ tkinter
299
+ ^^^^^^^
300
+
301
+ .. code-block :: bash
302
+
303
+ python3 -c " from tkinter import Tk; Tk().mainloop()"
304
+
299
305
GTK
300
306
^^^
301
307
302
308
.. code-block :: bash
303
309
304
- python3 -c ' from gi.repository import Gtk; win = Gtk.Window(); win.connect(" destroy" , Gtk.main_quit); win.show(); Gtk.main()'
310
+ python3 -c " from gi.repository import Gtk; win = Gtk.Window(); win.connect(' destroy' , Gtk.main_quit); win.show(); Gtk.main()" "
305
311
306
312
wxPython
307
313
^^^^^^^^
0 commit comments