8000 Further improve backend tutorial. by anntzer · Pull Request #14995 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Further improve backend tutorial. #14995

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
Aug 7, 2019
Merged
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
20 changes: 10 additions & 10 deletions tutorials/introductory/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,10 @@ def my_plotter(ax, data1, data2, param_dict):
# :func:`matplotlib.use`::
#
# import matplotlib
# matplotlib.use('PS') # generate postscript output by default
# matplotlib.use('qt5agg')
#
# If you use the `~matplotlib.use` function, this should be done before
# importing :mod:`matplotlib.pyplot`. Calling `~matplotlib.use` after pyplot
# has been imported may fail to switch the backend and raise an ImportError.
# This should be done before any figure is created; otherwise Matplotlib may
# fail to switch the backend and raise an ImportError.
#
# Using `~matplotlib.use` will require changes in your code if users want to
# use a different backend. Therefore, you should avoid explicitly calling
Expand All @@ -359,12 +358,13 @@ def my_plotter(ax, data1, data2, param_dict):
# The builtin backends
# --------------------
#
# With a typical installation of matplotlib, such as from a
# binary installer or a linux distribution package, a good default
# backend will already be set, allowing both interactive work and
# plotting from scripts, with output to the screen and/or to
# a file, so at least initially you will not need to use any of the
# methods given above.
# By default, Matplotlib should automatically select a default backend which
# allows both interactive work and plotting from scripts, with output to the
# screen and/or to a file, so at least initially you will not need to worry
# about the backend. The most common exception is if your Python distribution
# comes without :mod:`tkinter` and you have no other GUI toolkit installed;
# this happens on certain Linux distributions, where you need to install a
# Linux package named ``python-tk`` (or similar).
#
# If, however, you want to write graphical user interfaces, or a web
# application server (:ref:`howto-webapp`), or need a better
Expand Down
0