@@ -11,25 +11,23 @@ Obtaining Matplotlib version
11
11
----------------------------
12
12
13
13
To 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:
19
15
16
+ >>> import matplotlib
17
+ >>> matplotlib.__version__
18
+ '0.98.0'
20
19
21
20
.. _locating-matplotlib-install :
22
21
23
22
:file: `matplotlib ` install location
24
23
-----------------------------------
25
24
26
25
You 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:
32
27
28
+ >>> import matplotlib
29
+ >>> matplotlib.__file__
30
+ '/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/__init__.pyc'
33
31
34
32
.. _locating-matplotlib-config-dir :
35
33
@@ -39,32 +37,32 @@ and printing the ``__file__`` attribute::
39
37
Each user has a Matplotlib configuration directory which may contain a
40
38
:ref: `matplotlibrc <customizing-with-matplotlibrc-files >` file. To
41
39
locate your :file: `matplotlib/ ` configuration directory, use
42
- :func: `matplotlib.get_configdir `::
40
+ :func: `matplotlib.get_configdir `:
43
41
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'
47
45
48
46
On Unix-like systems, this directory is generally located in your
49
47
:envvar: `HOME ` directory under the :file: `.config/ ` directory.
50
48
51
49
In addition, users have a cache directory. On Unix-like systems, this is
52
50
separate 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 `:
54
52
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'
58
56
59
57
On Windows, both the config directory and the cache directory are
60
58
the same and are in your :file: `Documents and Settings ` or :file: `Users `
61
- directory by default::
59
+ directory by default:
62
60
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'
68
66
69
67
If you would like to use a different configuration directory, you can
70
68
do so by specifying the location in your :envvar: `MPLCONFIGDIR `
0 commit comments