diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-05-21 13:36:10 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-05-21 13:36:10 +0000 |
commit | b9a82a1c4a048d4a7d9adfbd55b7ca643add80b1 (patch) | |
tree | fd00e88cd2282a38335b8781aa980c39c48c50d4 /doc/source/conf.py | |
parent | b95b2b8c0575e7e43e8541f15b25160d62d0af18 (diff) | |
download | numpy-b9a82a1c4a048d4a7d9adfbd55b7ca643add80b1.tar.gz |
docs: enable plot_directive
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 14c1c69c4..318011e8a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -18,7 +18,7 @@ sys.path.insert(0, os.path.abspath('../sphinxext')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'numpydoc', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', - 'only_directives'] + 'only_directives', 'plot_directive'] if sphinx.__version__ >= "0.7": extensions.append('sphinx.ext.autosummary') @@ -240,3 +240,29 @@ coverage_c_regexes = {} coverage_ignore_c_items = {} +# ----------------------------------------------------------------------------- +# Plots +# ----------------------------------------------------------------------------- +plot_pre_code = """ +import numpy as np +np.random.seed(0) +""" +plot_include_source = True +plot_formats = [('png', 100), 'pdf'] + +import matplotlib +matplotlib.rcParams.update({ + 'font.size': 8, + 'axes.titlesize': 8, + 'axes.labelsize': 8, + 'xtick.labelsize': 8, + 'ytick.labelsize': 8, + 'legend.fontsize': 8, + 'figure.figsize': (3.236068, 2), + 'figure.subplot.bottom': 0.2, + 'figure.subplot.left': 0.2, + 'figure.subplot.right': 0.9, + 'figure.subplot.top': 0.85, + 'figure.subplot.wspace': 0.4, + 'text.usetex': False, +}) |