@@ -43,26 +43,30 @@ locate your :file:`matplotlib/` configuration directory, use
4343>>> mpl.get_configdir()
4444'/home/darren/.config/matplotlib'
4545
46- On Unix-like systems , this directory is generally located in your
46+ On Linux and FreeBSD , this directory is generally located in your
4747:envvar: `HOME ` directory under the :file: `.config/ ` directory.
4848
49- In addition, users have a cache directory. On Unix-like systems , this is
49+ In addition, users have a cache directory. On Linux and FreeBSD , this is
5050separate from the configuration directory by default. To locate your
5151:file: `.cache/ ` directory, use :func: `matplotlib.get_cachedir `:
5252
5353>>> import matplotlib as mpl
5454>>> mpl.get_cachedir()
5555'/home/darren/.cache/matplotlib'
5656
57+ On macOS, both the config directory and the cache directory are
58+ :file: `{ HOME } /.matplotlib ` by default.
59+
5760On Windows, both the config directory and the cache directory are
58- the same and are in your :file: `Documents and Settings ` or :file: `Users `
59- directory by default:
61+ :file: `%LOCALAPPDATA%\\ matplotlib ` by default. If
62+ :file: `%USERPROFILE%\\ .matplotlib ` already exists (for example, from an
63+ older Matplotlib version), that directory is used instead:
6064
6165>>> import matplotlib as mpl
6266>>> mpl.get_configdir()
63- 'C:\\Documents and Settings \\jdhunter\\. matplotlib'
67+ 'C:\\Users \\jdhunter\\AppData\\Local\\ matplotlib'
6468>>> mpl.get_cachedir()
65- 'C:\\Documents and Settings \\jdhunter\\. matplotlib'
69+ 'C:\\Users \\jdhunter\\AppData\\Local\\ matplotlib'
6670
6771If you would like to use a different configuration directory, you can
6872do so by specifying the location in your :envvar: `MPLCONFIGDIR `
0 commit comments