From 9aa80dc2058abc5ad53278f63a20afb1cb362caa Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 18 Jul 2021 18:49:17 +0200 Subject: [PATCH] Reword docs about fallbacks on headless linux. $DISPLAY (or $WAYLAND_DISPLAY) is not the only thing we consider; we also check that one can indeed connect to the display server. (But there's no point of writing a full explanation of the Linux display protocols; there's much better docs for that elsewhere online.) --- doc/faq/environment_variables_faq.rst | 8 -------- tutorials/introductory/usage.py | 9 ++++----- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/doc/faq/environment_variables_faq.rst b/doc/faq/environment_variables_faq.rst index 6be761e6892e..fa7b14d9889c 100644 --- a/doc/faq/environment_variables_faq.rst +++ b/doc/faq/environment_variables_faq.rst @@ -7,14 +7,6 @@ Environment variables .. contents:: :backlinks: none - -.. envvar:: DISPLAY - - The server and screen on which to place windows. This is interpreted by GUI - toolkits in a backend-specific manner, but generally refers to an `X.org - display name - `_. - .. envvar:: HOME The user's home directory. On Linux, :envvar:`~ ` is shorthand for :envvar:`HOME`. diff --git a/tutorials/introductory/usage.py b/tutorials/introductory/usage.py index 1f393e6a7606..397d7b7a8879 100644 --- a/tutorials/introductory/usage.py +++ b/tutorials/introductory/usage.py @@ -299,11 +299,10 @@ def my_plotter(ax, data1, data2, param_dict): # # Without a backend explicitly set, Matplotlib automatically detects a usable # backend based on what is available on your system and on whether a GUI event -# loop is already running. On Linux, if the environment variable -# :envvar:`DISPLAY` is unset, the "event loop" is identified as "headless", -# which causes a fallback to a noninteractive backend (agg); in all other -# cases, an interactive backend is preferred (usually, at least tkagg will be -# available). +# loop is already running. The first usable backend in the following list is +# selected: MacOSX, Qt5Agg, Gtk3Agg, TkAgg, WxAgg, Agg. The last, Agg, is a +# non-interactive backend that can only write to files. It is used on Linux, +# if Matplotlib cannot connect to either an X display or a Wayland display. # # Here is a detailed description of the configuration methods: # pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy