FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix default backend by tacaswell · Pull Request #19854 · matplotlib/matplotlib · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) No extension  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
11 changes: 11 additions & 0 deletions lib/matplotlib/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,17 @@ def _rc_params_in_file(fname, transform=lambda x: x, fail_on_error=False):

for key, (val, line, line_no) in rc_temp.items():
if key in rcsetup._validators:
# the backend parameter is special because the default value can
# not be expressed in the matplotlibrc file (the default is an
# internal sentinel to indicated that we should do backend fallback
# which picks the first importable interactive backend we find).
#
# This allows the backend parameter to be unset (as opposed to
# not present) in the matplotlibrc file. This is important because
# the defaults are pulled from a (fully commented out) template
# including with the installation.
if key == 'backend' and val == '':
continue
if fail_on_error:
config[key] = val # try to convert to proper type or raise
else:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/mpl-data/matplotlibrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
## PS PDF SVG Template
## You can also deploy your own backend outside of Matplotlib by referring to
## the module name (which must be in the PYTHONPATH) as 'module://my_backend'.
#backend: Agg
#backend:

## The port to use for the web server in the WebAgg backend.
#webagg.port: 8988
Expand Down

Back | FazBrowse Home | New Git URL