8000 Merge branch 'plot_directive' of github.com:mdboom/matplotlib into pl… · kaufman/matplotlib@403c5b8 · GitHub 65FB
[go: up one dir, main page]

Skip to content

Commit 403c5b8

Browse files
committed
Merge branch 'plot_directive' of github.com:mdboom/matplotlib into plot_directive
Conflicts: lib/matplotlib/sphinxext/plot_directive.py
2 parents f13c3df + 6bae189 commit 403c5b8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
2626
2. Included as **inline content** to the directive::
2727
28-
.. plot::
29-
import matplotlib.pyplot as plt
30-
import matplotlib.image as mpimg
31-
import numpy as np
32-
img = mpimg.imread('_static/stinkbug.png')
33-
imgplot = plt.imshow(img)
28+
.. plot::
29+
import matplotlib.pyplot as plt
30+
import matplotlib.image as mpimg
31+
import numpy as np
32+
img = mpimg.imread('_static/stinkbug.png')
33+
imgplot = plt.imshow(img)
3434
3535
3. Using **doctest** syntax::
3636
37-
.. plot:: foo
38-
A plotting example:
39-
>>> import matplotlib.pyplot as plt
40-
>>> plt.plot([1,2,3], [4,5,6])
37+
.. plot::
38+
A plotting example:
39+
>>> import matplotlib.pyplot as plt
40+
>>> plt.plot([1,2,3], [4,5,6])
4141
4242
Options
4343
-------

0 commit comments

Comments
 (0)
0