Skip to content

Reword docs about fallbacks on headless linux. #20664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions doc/faq/environment_variables_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<https://www.x.org/releases/X11R7.7/doc/man/man7/X.7.xhtml#heading5>`_.

.. envvar:: HOME

The user's home directory. On Linux, :envvar:`~ <HOME>` is shorthand for :envvar:`HOME`.
Expand Down
9 changes: 4 additions & 5 deletions tutorials/introductory/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down