@@ -11,25 +11,23 @@ Obtaining Matplotlib version
1111----------------------------
1212
1313To find out your Matplotlib version number, import it and print the
14- ``__version__ `` attribute::
15-
16- >>> import matplotlib
17- >>> matplotlib.__version__
18- '0.98.0'
14+ ``__version__ `` attribute:
1915
16+ >>> import matplotlib
17+ >>> matplotlib.__version__
18+ '0.98.0'
2019
2120.. _locating-matplotlib-install :
2221
2322:file: `matplotlib ` install location
2423-----------------------------------
2524
2625You can find what directory Matplotlib is installed in by importing it
27- and printing the ``__file__ `` attribute::
28-
29- >>> import matplotlib
30- >>> matplotlib.__file__
31- '/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/__init__.pyc'
26+ and printing the ``__file__ `` attribute:
3227
28+ >>> import matplotlib
29+ >>> matplotlib.__file__
30+ '/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/__init__.pyc'
3331
3432.. _locating-matplotlib-config-dir :
3533
@@ -39,32 +37,32 @@ and printing the ``__file__`` attribute::
3937Each user has a Matplotlib configuration directory which may contain a
4038:ref: `matplotlibrc <customizing-with-matplotlibrc-files >` file. To
4139locate your :file: `matplotlib/ ` configuration directory, use
42- :func: `matplotlib.get_configdir `::
40+ :func: `matplotlib.get_configdir `:
4341
44- >>> import matplotlib as mpl
45- >>> mpl.get_configdir()
46- '/home/darren/.config/matplotlib'
42+ >>> import matplotlib as mpl
43+ >>> mpl.get_configdir()
44+ '/home/darren/.config/matplotlib'
4745
4846On Unix-like systems, this directory is generally located in your
4947:envvar: `HOME ` directory under the :file: `.config/ ` directory.
5048
5149In addition, users have a cache directory. On Unix-like systems, this is
5250separate from the configuration directory by default. To locate your
53- :file: `.cache/ ` directory, use :func: `matplotlib.get_cachedir `::
51+ :file: `.cache/ ` directory, use :func: `matplotlib.get_cachedir `:
5452
55- >>> import matplotlib as mpl
56- >>> mpl.get_cachedir()
57- '/home/darren/.cache/matplotlib'
53+ >>> import matplotlib as mpl
54+ >>> mpl.get_cachedir()
55+ '/home/darren/.cache/matplotlib'
5856
5957On Windows, both the config directory and the cache directory are
6058the same and are in your :file: `Documents and Settings ` or :file: `Users `
61- directory by default::
59+ directory by default:
6260
63- >>> import matplotlib as mpl
64- >>> mpl.get_configdir()
65- 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
66- >>> mpl.get_cachedir()
67- 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
61+ >>> import matplotlib as mpl
62+ >>> mpl.get_configdir()
63+ 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
64+ >>> mpl.get_cachedir()
65+ 'C:\\Documents and Settings\\jdhunter\\.matplotlib'
6866
6967If you would like to use a different configuration directory, you can
7068do so by specifying the location in your :envvar: `MPLCONFIGDIR `
0 commit comments