Permalink
Browse files

DOC: require matplotlib's plot_directive

  • Loading branch information...
1 parent 70f37a0 commit a45291b6646dc94633aefa5c1292e2aecae5d933 @pv pv committed Nov 17, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 doc/source/conf.py
  2. +6 −6 doc/source/tutorial/stats.rst
View
@@ -23,7 +23,7 @@
'sphinx.ext.autosummary']
# Determine if the matplotlib has a recent enough version of the
-# plot_directive, otherwise use the local fork.
+# plot_directive.
try:
from matplotlib.sphinxext import plot_directive
except ImportError:
@@ -37,7 +37,7 @@
if use_matplotlib_plot_directive:
extensions.append('matplotlib.sphinxext.plot_directive')
else:
- extensions.append('plot_directive')
+ raise RuntimeError("You need a recent enough version of matplotlib")
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -545,12 +545,12 @@ the probabilities.
[ 1.00000000e+01 0.00000000e+00 2.95019349e-02]]
-.. plot:: examples/normdiscr_plot1.py
+.. plot:: tutorial/examples/normdiscr_plot1.py
:align: center
:include-source: 0
-.. plot:: examples/normdiscr_plot2.py
+.. plot:: tutorial/examples/normdiscr_plot2.py
:align: center
:include-source: 0
@@ -908,7 +908,7 @@ get a less smoothed out result.
>>> plt.show()
-.. plot:: stats/plots/kde_plot2.py
+.. plot:: tutorial/stats/plots/kde_plot2.py
:align: center
:include-source: 0
@@ -922,7 +922,7 @@ for (close to) normal distributions, but even for unimodal distributions that
are quite strongly non-normal they work reasonably well. As a non-normal
distribution we take a Student's T distribution with 5 degrees of freedom.
-.. plot:: stats/plots/kde_plot3.py
+.. plot:: tutorial/stats/plots/kde_plot3.py
:align: center
:include-source: 1
@@ -965,7 +965,7 @@ each feature.
>>> ax.set_ylabel('Density')
>>> plt.show()
-.. plot:: stats/plots/kde_plot4.py
+.. plot:: tutorial/stats/plots/kde_plot4.py
:align: center
:include-source: 0
@@ -1019,7 +1019,7 @@ the individual data points on top.
>>> plt.show()
-.. plot:: stats/plots/kde_plot5.py
+.. plot:: tutorial/stats/plots/kde_plot5.py
:align: center
:include-source: 0

0 comments on commit a45291b

Please sign in to comment.