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

Backport PR #32482 on branch v3.11.0-doc (DOC: Update install docs for ttconv removal and Windows config dir) by meeseeksmachine · Pull Request #32503 · matplotlib/matplotlib · GitHub

Repository navigation

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

Filter by extension

Filter by extension .rst  (3) All 1 file type 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
1 change: 0 additions & 1 deletion doc/install/dependencies.rst
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 @@ -111,7 +111,6 @@ C libraries
Matplotlib brings its own copies of the following libraries:

- ``Agg``: the Anti-Grain Geometry C++ rendering engine
- ``ttconv``: a TrueType font utility

Additionally, Matplotlib depends on:

Expand Down
7 changes: 6 additions & 1 deletion doc/install/environment_variables_faq.rst
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 @@ -23,12 +23,17 @@ Environment variables
This is the directory used to store user customizations to
Matplotlib, as well as some caches to improve performance. If
:envvar:`MPLCONFIGDIR` is not defined, :file:`{HOME}/.config/matplotlib`
and :file:`{HOME}/.cache/matplotlib` are used on Linux, and
and :file:`{HOME}/.cache/matplotlib` are used on Linux and FreeBSD,
:file:`%LOCALAPPDATA%\\matplotlib` on Windows, and
:file:`{HOME}/.matplotlib` on other platforms, if they are
writable. Otherwise, the Python standard library's `tempfile.gettempdir` is
used to find a base directory in which the :file:`matplotlib` subdirectory is
created.

Note: Prior to Matplotlib 3.11, the config directory on Windows was
:file:`%USERPROFILE%\\.matplotlib`. For backward compatibility, newer
versions will continue to use this directory if it exists.

.. envvar:: MPL_IGNORE_SYSTEM_FONTS

When this variable is set, Matplotlib will update its font cache only with its own
Expand Down
16 changes: 10 additions & 6 deletions doc/install/troubleshooting_faq.inc.rst
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 @@ -43,26 +43,30 @@ locate your :file:`matplotlib/` configuration directory, use
>>> mpl.get_configdir()
'/home/darren/.config/matplotlib'

On Unix-like systems, this directory is generally located in your
On Linux and FreeBSD, this directory is generally located in your
:envvar:`HOME` directory under the :file:`.config/` directory.

In addition, users have a cache directory. On Unix-like systems, this is
In addition, users have a cache directory. On Linux and FreeBSD, this is
separate from the configuration directory by default. To locate your
:file:`.cache/` directory, use :func:`matplotlib.get_cachedir`:

>>> import matplotlib as mpl
>>> mpl.get_cachedir()
'/home/darren/.cache/matplotlib'

On macOS, both the config directory and the cache directory are
:file:`{HOME}/.matplotlib` by default.

On Windows, both the config directory and the cache directory are
the same and are in your :file:`Documents and Settings` or :file:`Users`
directory by default:
:file:`%LOCALAPPDATA%\\matplotlib` by default. If
:file:`%USERPROFILE%\\.matplotlib` already exists (for example, from an
older Matplotlib version), that directory is used instead:

>>> import matplotlib as mpl
>>> mpl.get_configdir()
'C:\\Documents and Settings\\jdhunter\\.matplotlib'
'C:\\Users\\jdhunter\\AppData\\Local\\matplotlib'
>>> mpl.get_cachedir()
'C:\\Documents and Settings\\jdhunter\\.matplotlib'
'C:\\Users\\jdhunter\\AppData\\Local\\matplotlib'

If you would like to use a different configuration directory, you can
do so by specifying the location in your :envvar:`MPLCONFIGDIR`
Expand Down
Loading

Back | FazBrowse Home | New Git URL