Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8eea98e

Browse files
committed
Fix the docs because of changes in the sphinx plot directive
1 parent 4f20dfc commit 8eea98e

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

doc/devel/documenting_mpl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ so plots from the examples directory can be included using
305305

306306
.. code-block:: rst
307307
308-
.. plot:: gallery/lines_bars_and_markers/simple_plot.py
308+
.. plot:: /gallery/lines_bars_and_markers/simple_plot.py
309309
310310
Note that the python script that generates the plot is referred to, rather than
311311
any plot that is created. Sphinx-gallery will provide the correct reference
@@ -673,7 +673,7 @@ the file :file:`examples/text_labels_and_annotations/legend.py`:
673673
Examples
674674
--------
675675
676-
.. plot:: gallery/text_labels_and_annotations/legend.py
676+
.. plot:: /gallery/text_labels_and_annotations/legend.py
677677
"""
678678
679679
Note that ``examples/text_labels_and_annotations/legend.py`` has been mapped to

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def legend(self, *args, **kwargs):
402402
Examples
403403
--------
404404
405-
.. plot:: gallery/text_labels_and_annotations/legend.py
405+
.. plot:: /gallery/text_labels_and_annotations/legend.py
406406
407407
"""
408408
handles, labels, extra_args, kwargs = mlegend._parse_legend_args(
@@ -1229,7 +1229,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
12291229
Examples
12301230
--------
12311231
1232-
.. plot:: gallery/lines_bars_and_markers/eventplot_demo.py
1232+
.. plot:: /gallery/lines_bars_and_markers/eventplot_demo.py
12331233
"""
12341234
self._process_unit_info(xdata=positions,
12351235
ydata=[lineoffsets, linelengths],
@@ -3744,7 +3744,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
37443744
Examples
37453745
--------
37463746
3747-
.. plot:: gallery/statistics/bxp.py
3747+
.. plot:: /gallery/statistics/bxp.py
37483748
37493749
"""
37503750
# lists of artists to be output

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def __init__(self,
13611361
Examples
13621362
--------
13631363
1364-
.. plot:: gallery/lines_bars_and_markers/eventcollection_demo.py
1364+
.. plot:: /gallery/lines_bars_and_markers/eventcollection_demo.py
13651365
"""
13661366

13671367
segment = (lineoffset + linelength / 2.,

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def make_compound_path_from_polys(cls, XY):
303303
numsides x 2) numpy array of vertices. Return object is a
304304
:class:`Path`
305305
306-
.. plot:: gallery/misc/histogram_path.py
306+
.. plot:: /gallery/misc/histogram_path.py
307307
308308
"""
309309

lib/matplotlib/sankey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25,
117117
118118
**Examples:**
119119
120-
.. plot:: gallery/specialty_plots/sankey_basics.py
120+
.. plot:: /gallery/specialty_plots/sankey_basics.py
121121
"""
122122
# Check the arguments.
123123
if gap < 0:

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,8 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
19381938
Examples
19391939
--------
19401940
1941-
.. plot:: gallery/mplot3d/trisurf3d.py
1942-
.. plot:: gallery/mplot3d/trisurf3d_2.py
1941+
.. plot:: /gallery/mplot3d/trisurf3d.py
1942+
.. plot:: /gallery/mplot3d/trisurf3d_2.py
19431943
19441944
.. versionadded:: 1.2.0
19451945
This plotting function was added for the v1.2.0 release.
@@ -2766,10 +2766,10 @@ def voxels(self, *args, facecolors=None, edgecolors=None, **kwargs):
27662766
27672767
Examples
27682768
--------
2769-
.. plot:: gallery/mplot3d/voxels.py
2770-
.. plot:: gallery/mplot3d/voxels_rgb.py
2771-
.. plot:: gallery/mplot3d/voxels_torus.py
2772-
.. plot:: gallery/mplot3d/voxels_numpy_logo.py
2769+
.. plot:: /gallery/mplot3d/voxels.py
2770+
.. plot:: /gallery/mplot3d/voxels_rgb.py
2771+
.. plot:: /gallery/mplot3d/voxels_torus.py
2772+
.. plot:: /gallery/mplot3d/voxels_numpy_logo.py
27732773
"""
27742774

27752775
# work out which signature we should be using, and use it to parse

0 commit comments

Comments
 (0)