` file. To
locate your :file:`matplotlib/` configuration directory, use
-:func:`matplotlib.get_configdir`::
+:func:`matplotlib.get_configdir`:
- >>> import matplotlib as mpl
- >>> mpl.get_configdir()
- '/home/darren/.config/matplotlib'
+>>> import matplotlib as mpl
+>>> mpl.get_configdir()
+'/home/darren/.config/matplotlib'
On Unix-like systems, 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
separate from the configuration directory by default. To locate your
-:file:`.cache/` directory, use :func:`matplotlib.get_cachedir`::
+:file:`.cache/` directory, use :func:`matplotlib.get_cachedir`:
- >>> import matplotlib as mpl
- >>> mpl.get_cachedir()
- '/home/darren/.cache/matplotlib'
+>>> import matplotlib as mpl
+>>> mpl.get_cachedir()
+'/home/darren/.cache/matplotlib'
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::
+directory by default:
- >>> import matplotlib as mpl
- >>> mpl.get_configdir()
- 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
- >>> mpl.get_cachedir()
- 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
+>>> import matplotlib as mpl
+>>> mpl.get_configdir()
+'C:\\Documents and Settings\\jdhunter\\.matplotlib'
+>>> mpl.get_cachedir()
+'C:\\Documents and Settings\\jdhunter\\.matplotlib'
If you would like to use a different configuration directory, you can
do so by specifying the location in your :envvar:`MPLCONFIGDIR`
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy