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

Skip to content

Commit b6437ad

Browse files
committed
Fix the docs because of changes in the sphinx plot directive
1 parent fa66c49 commit b6437ad

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

doc/devel/documenting_mpl.rst

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

301301
.. code-block:: rst
302302
303-
.. plot:: gallery/lines_bars_and_markers/simple_plot.py
303+
.. plot:: /gallery/lines_bars_and_markers/simple_plot.py
304304
305305
Note that the python script that generates the plot is referred to, rather than
306306
any plot that is created. Sphinx-gallery will provide the correct reference
@@ -669,7 +669,7 @@ the file :file:`examples/text_labels_and_annotations/legend.py`:
669669
Examples
670670
--------
671671
672-
.. plot:: gallery/text_labels_and_annotations/legend.py
672+
.. plot:: /gallery/text_labels_and_annotations/legend.py
673673
"""
674674
675675
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
@@ -370,7 +370,7 @@ def legend(self, *args, **kwargs):
370370
Examples
371371
--------
372372
373-
.. plot:: gallery/text_labels_and_annotations/legend.py
373+
.. plot:: /gallery/text_labels_and_annotations/legend.py
374374
375375
"""
376376
handles, labels, extra_args, kwargs = mlegend._parse_legend_args(
@@ -1272,7 +1272,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
12721272
Examples
12731273
--------
12741274
1275-
.. plot:: gallery/lines_bars_and_markers/eventplot_demo.py
1275+
.. plot:: /gallery/lines_bars_and_markers/eventplot_demo.py
12761276
"""
12771277
self._process_unit_info(xdata=positions,
12781278
ydata=[lineoffsets, linelengths],
@@ -3879,7 +3879,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
38793879
Examples
38803880
--------
38813881
3882-
.. plot:: gallery/statistics/bxp.py
3882+
.. plot:: /gallery/statistics/bxp.py
38833883
38843884
"""
38853885
# lists of artists to be output

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def __init__(self,
14681468
Examples
14691469
--------
14701470
1471-
.. plot:: gallery/lines_bars_and_markers/eventcollection_demo.py
1471+
.. plot:: /gallery/lines_bars_and_markers/eventcollection_demo.py
14721472
"""
14731473

14741474
segment = (lineoffset + linelength / 2.,

lib/matplotlib/path.py

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

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
@@ -1959,8 +1959,8 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
19591959
Examples
19601960
--------
19611961
1962-
.. plot:: gallery/mplot3d/trisurf3d.py
1963-
.. plot:: gallery/mplot3d/trisurf3d_2.py
1962+
.. plot:: /gallery/mplot3d/trisurf3d.py
1963+
.. plot:: /gallery/mplot3d/trisurf3d_2.py
19641964
19651965
.. versionadded:: 1.2.0
19661966
This plotting function was added for the v1.2.0 release.
@@ -2802,10 +2802,10 @@ def voxels(self, *args, facecolors=None, edgecolors=None, shade=True,
28022802
28032803
Examples
28042804
--------
2805-
.. plot:: gallery/mplot3d/voxels.py
2806-
.. plot:: gallery/mplot3d/voxels_rgb.py
2807-
.. plot:: gallery/mplot3d/voxels_torus.py
2808-
.. plot:: gallery/mplot3d/voxels_numpy_logo.py
2805+
.. plot:: /gallery/mplot3d/voxels.py
2806+
.. plot:: /gallery/mplot3d/voxels_rgb.py
2807+
.. plot:: /gallery/mplot3d/voxels_torus.py
2808+
.. plot:: /gallery/mplot3d/voxels_numpy_logo.py
28092809
"""
28102810

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

0 commit comments

Comments
 (0)