Skip to content

Fix cross-references in examples. #15060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 15 additions & 154 deletions doc/missing-references.json
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,6 @@
"Axes": [
"doc/api/_as_gen/matplotlib.pyplot.rst:173:<autosummary>:1",
"doc/api/prev_api_changes/api_changes_3.0.0.rst:449",
"doc/gallery/animation/animated_histogram.rst:112",
"doc/gallery/statistics/errorbars_and_boxes.rst:21",
"doc/users/prev_whats_new/whats_new_1.5.rst:514",
"lib/matplotlib/pyplot.py:docstring of matplotlib.pyplot.delaxes:2",
"lib/matplotlib/pyplot.py:docstring of matplotlib.pyplot.plotting:33"
Expand Down Expand Up @@ -1177,8 +1175,6 @@
"Path": [
"doc/api/prev_api_changes/api_changes_1.3.x.rst:134",
"doc/api/prev_api_changes/api_changes_1.3.x.rst:147",
"doc/gallery/animation/animated_histogram.rst:112",
"doc/gallery/text_labels_and_annotations/demo_text_path.rst:14",
"lib/matplotlib/backend_bases.py:docstring of matplotlib.backend_bases.GraphicsContextBase.get_hatch_path:2",
"lib/matplotlib/textpath.py:docstring of matplotlib.textpath.TextToPath.get_text_path:37"
],
Expand Down Expand Up @@ -1384,7 +1380,6 @@
"lib/matplotlib/colors.py:docstring of matplotlib.colors:30"
],
"'C'": [
"doc/gallery/color/color_demo.rst:26",
"doc/tutorials/colors/colors.rst:32",
"lib/matplotlib/colors.py:docstring of matplotlib.colors:54"
],
Expand Down Expand Up @@ -1413,7 +1408,8 @@
"numpy.datetime64": [
"doc/faq/howto_faq.rst:18",
"doc/faq/howto_faq.rst:21",
"doc/tutorials/text/text_intro.rst:566",
"doc/gallery/recipes/common_date_problems.rst:34",
"doc/tutorials/text/text_intro.rst:581",
"doc/users/prev_whats_new/whats_new_2.2.rst:155",
"lib/matplotlib/dates.py:docstring of matplotlib.dates.date2num:8"
],
Expand Down Expand Up @@ -1847,12 +1843,10 @@
"doc/api/prev_api_changes/api_changes_1.3.x.rst:49"
],
"hist": [
"doc/api/prev_api_changes/api_changes_1.3.x.rst:52",
"doc/gallery/user_interfaces/svg_histogram_sgskip.rst:33"
"doc/api/prev_api_changes/api_changes_1.3.x.rst:52"
],
"width": [
"doc/api/prev_api_changes/api_changes_1.3.x.rst:52",
"doc/gallery/pie_and_polar_charts/nested_pie.rst:39",
"lib/matplotlib/sphinxext/plot_directive.py:docstring of matplotlib.sphinxext.plot_directive:72"
],
"rwidth": [
Expand Down Expand Up @@ -2112,12 +2106,10 @@
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102"
],
"xytext": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102",
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39"
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102"
],
"textcoords": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102",
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39"
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102"
],
"xyann": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:102",
Expand All @@ -2132,12 +2124,10 @@
],
"xy": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:110",
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39",
"lib/matplotlib/widgets.py:docstring of matplotlib.widgets.Lasso:8"
],
"xycoords": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:112",
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39"
"doc/api/prev_api_changes/api_changes_1.4.x.rst:112"
],
"set_position()": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:113"
Expand All @@ -2161,7 +2151,6 @@
],
"FormatStrFormatter": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:133",
"doc/gallery/ticks_and_spines/major_minor_demo.rst:24",
"doc/users/prev_whats_new/whats_new_1.4.rst:129"
],
"matplotlib.testing.image_util": [
Expand Down Expand Up @@ -2243,9 +2232,6 @@
],
"GridSpec": [
"doc/api/prev_api_changes/api_changes_1.4.x.rst:181",
"doc/gallery/userdemo/demo_gridspec01.rst:14",
"doc/gallery/userdemo/demo_gridspec03.rst:14",
"doc/gallery/userdemo/demo_gridspec06.rst:14",
"doc/tutorials/intermediate/constrainedlayout_guide.rst:821"
],
"matplotlib.cbook.ls_mapper": [
Expand Down Expand Up @@ -2417,7 +2403,6 @@
],
"bar": [
"doc/api/prev_api_changes/api_changes_2.0.1.rst:36",
"doc/gallery/axisartist/demo_floating_axes.rst:16",
"doc/users/prev_whats_new/whats_new_1.5.rst:457"
],
"plt.bar": [
Expand All @@ -2439,8 +2424,7 @@
"doc/api/prev_api_changes/api_changes_2.1.0.rst:56"
],
"np.datetime64": [
"doc/api/prev_api_changes/api_changes_2.1.0.rst:95",
"doc/gallery/recipes/common_date_problems.rst:34"
"doc/api/prev_api_changes/api_changes_2.1.0.rst:95"
],
"matplotlib.mlab.griddata": [
"doc/api/prev_api_changes/api_changes_2.1.0.rst:117"
Expand Down Expand Up @@ -2644,7 +2628,6 @@
"lib/matplotlib/projections/polar.py:docstring of matplotlib.projections.polar.ThetaTick:4"
],
"plot": [
"doc/gallery/units/units_sample.rst:14",
"doc/users/prev_whats_new/changelog.rst:232",
"lib/matplotlib/sphinxext/plot_directive.py:docstring of matplotlib.sphinxext.plot_directive:4"
],
Expand Down Expand Up @@ -3233,149 +3216,40 @@
"set_color": [
"doc/faq/howto_faq.rst:45"
],
"Patch": [
"doc/gallery/animation/animated_histogram.rst:112",
"doc/users/prev_whats_new/whats_new_1.5.rst:321",
"doc/users/prev_whats_new/whats_new_1.5.rst:324"
],
"FuncAnimation": [
"doc/gallery/animation/animated_histogram.rst:112"
],
"mpl_toolkits.axes_grid1.inset_axes": [
"doc/gallery/axes_grid1/demo_colorbar_with_inset_locator.rst:14"
],
"scatter": [
"doc/gallery/axisartist/demo_floating_axes.rst:16"
],
"GridHelperCurveLinear": [
"doc/gallery/axisartist/demo_floating_axes.rst:17",
"doc/gallery/axisartist/demo_floating_axes.rst:18",
"floating_axes.FloatingSubplot": [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New because for some reason this isn't in the documentation.

"doc/gallery/axisartist/demo_floating_axes.rst:20"
],
"FloatingSubplot": [
"doc/gallery/axisartist/demo_floating_axes.rst:18"
],
"LinearSegmentedColormap": [
"doc/gallery/color/custom_cmap.rst:17",
"doc/tutorials/colors/colormap-manipulation.rst:181"
],
"text.Text": [
"doc/gallery/images_contours_and_fields/demo_bboximage.rst:14"
],
"interpolation": [
"doc/gallery/images_contours_and_fields/interpolation_methods.rst:17"
],
"interpolation=\"antialiased\"": [
"doc/gallery/images_contours_and_fields/interpolation_methods.rst:26"
],
"extent=(0, 1, 0, 1), transform=ax.transAxes": [
"doc/gallery/lines_bars_and_markers/gradient_bar.rst:23"
],
"intersect_bbox": [
"doc/gallery/misc/bbox_intersect.rst:14"
],
"Glyph": [
"doc/gallery/misc/ftface_props.rst:14"
],
"load_char": [
"doc/gallery/misc/ftface_props.rst:14"
],
"from matplotlib.backends.backend_pgf import PdfPages": [
"doc/gallery/misc/multipage_pdf.rst:17"
],
"attach_note": [
"doc/gallery/misc/multipage_pdf.rst:17"
],
"Axes3D.voxels": [
"doc/gallery/mplot3d/voxels_rgb.rst:14"
],
"wedgeprops": [
"doc/gallery/pie_and_polar_charts/nested_pie.rst:39"
],
"set_label_coords": [
"doc/gallery/pyplots/align_ylabels.rst:74"
],
"Figure.constrained_layout": [
"doc/gallery/pyplots/auto_subplots_adjust.rst:18"
],
"pyplot.subplot": [
"doc/gallery/pyplots/pyplot_two_subplots.rst:14"
],
"semilogx": [
"doc/gallery/scales/log_test.rst:14"
],
"maxiter": [
"doc/gallery/showcase/mandelbrot.rst:18"
],
"maxiter=200": [
"doc/gallery/showcase/mandelbrot.rst:18"
],
"imshow": [
"doc/gallery/specialty_plots/mri_demo.rst:14"
],
"errorbar_demo.py": [
"doc/gallery/statistics/errorbar_features.rst:14"
"Patch": [
"doc/users/prev_whats_new/whats_new_1.5.rst:321",
"doc/users/prev_whats_new/whats_new_1.5.rst:324"
],
"patches": [
"doc/gallery/statistics/hist.rst:72"
"LinearSegmentedColormap": [
"doc/tutorials/colors/colormap-manipulation.rst:181"
],
"Figure.align_xlabels": [
"doc/gallery/subplots_axes_and_figures/align_labels_demo.rst:14",
"doc/users/prev_whats_new/whats_new_2.2.rst:70"
],
"Figure.align_ylabels": [
"doc/gallery/subplots_axes_and_figures/align_labels_demo.rst:14",
"doc/users/prev_whats_new/whats_new_2.2.rst:70"
],
"Figure.align_labels": [
"doc/gallery/subplots_axes_and_figures/align_labels_demo.rst:17",
"doc/users/prev_whats_new/whats_new_2.2.rst:84"
],
"Axes.axes.secondary_xaxis": [
"doc/gallery/subplots_axes_and_figures/secondary_axis.rst:14"
],
"Axes.axes.secondary_yaxis": [
"doc/gallery/subplots_axes_and_figures/secondary_axis.rst:14"
],
"axs": [
"doc/gallery/subplots_axes_and_figures/subplots_demo.rst:138",
"doc/gallery/subplots_axes_and_figures/subplots_demo.rst:71"
],
"xy=(x, y)": [
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39"
],
"xytext=(x, y)": [
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:39"
],
"font_manager.FontProperties": [
"doc/gallery/text_labels_and_annotations/font_file.rst:14"
],
"ConciseDateConverter": [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't appear in matplotlib.dates documentation.

"doc/gallery/ticks_and_spines/date_concise_formatter.rst:209"
],
"MultipleLocator": [
"doc/gallery/ticks_and_spines/major_minor_demo.rst:24"
"doc/gallery/ticks_and_spines/date_concise_formatter.rst:215"
],
"ScalarFormatter": [
"doc/gallery/ticks_and_spines/scalarformatter.rst:14",
"doc/users/prev_whats_new/whats_new_1.4.rst:293"
],
"xunits": [
"doc/gallery/units/units_sample.rst:14"
],
"yunits": [
"doc/gallery/units/units_sample.rst:14"
],
"title": [
"doc/gallery/user_interfaces/svg_tooltip_sgskip.rst:23"
],
"ConnectionPatch": [
"doc/gallery/userdemo/connect_simple01.rst:14",
"doc/users/prev_whats_new/whats_new_3.1.0.rst:178"
],
"plt.subplot2grid": [
"doc/gallery/userdemo/demo_gridspec01.rst:14"
],
"pyplot": [
"doc/index.rst:44"
],
Expand Down Expand Up @@ -4739,15 +4613,9 @@
"lib/matplotlib/widgets.py:docstring of matplotlib.widgets.RectangleSelector:1",
"lib/matplotlib/widgets.py:docstring of matplotlib.widgets.SpanSelector:1"
],
"~.collections.PatchCollection": [
"doc/gallery/shapes_and_collections/patch_collection.rst:14"
],
"numpy.datetime64": [
"doc/gallery/text_labels_and_annotations/date.rst:18"
],
"~matplotlib.spines.Spine": [
"doc/gallery/ticks_and_spines/multiple_yaxis_with_spines.rst:18"
],
"matplotlib.patch.PathPatch": [
"doc/tutorials/advanced/path_tutorial.rst:202"
],
Expand Down Expand Up @@ -5163,9 +5031,6 @@
"matplotlib.get_cachedir": [
"doc/faq/troubleshooting_faq.rst:52"
],
"matplotlib.pyplots.subplots": [
"doc/gallery/recipes/create_subplots.rst:43"
],
"colors.BoundaryNorm": [
"doc/tutorials/colors/colorbar_only.rst:65",
"doc/tutorials/colors/colormapnorms.rst:188"
Expand Down Expand Up @@ -5335,11 +5200,7 @@
"matplotlib.tests.test_basic": [
"doc/devel/testing.rst:99"
],
"animation": [
"doc/gallery/animation/animation_demo.rst:16"
],
"matplotlib": [
"doc/gallery/text_labels_and_annotations/annotation_demo.rst:14",
"doc/tutorials/introductory/usage.rst:591"
],
"matplotlib.patch": [
Expand Down Expand Up @@ -5378,4 +5239,4 @@
"doc/users/prev_whats_new/whats_new_1.5.rst:737"
]
}
}
}
12 changes: 6 additions & 6 deletions examples/animation/animated_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

###############################################################################
# Here comes the tricky part -- we have to set up the vertex and path codes
# arrays using ``plt.Path.MOVETO``, ``plt.Path.LINETO`` and
# ``plt.Path.CLOSEPOLY`` for each rect.
# arrays using `.Path.MOVETO`, `.Path.LINETO` and `.Path.CLOSEPOLY` for each
# rect.
#
# * We need 1 ``MOVETO`` per rectangle, which sets the initial point.
# * We need 3 ``LINETO``'s, which tell Matplotlib to draw lines from
Expand Down Expand Up @@ -61,7 +61,7 @@
# To animate the histogram, we need an ``animate`` function, which generates
# a random set of numbers and updates the locations of the vertices for the
# histogram (in this case, only the heights of each rectangle). ``patch`` will
# eventually be a ``Patch`` object.
# eventually be a `.Patch` object.
patch = None


Expand All @@ -75,9 +75,9 @@ def animate(i):
return [patch, ]

###############################################################################
# And now we build the `Path` and `Patch` instances for the histogram using
# our vertices and codes. We add the patch to the `Axes` instance, and setup
# the `FuncAnimation` with our animate function.
# And now we build the `.Path` and `.Patch` instances for the histogram using
# our vertices and codes. We add the patch to the `~.axes.Axes` instance, and
# setup the `.FuncAnimation` with our ``animate`` function.
fig, ax = plt.subplots()
barpath = path.Path(verts, codes)
patch = patches.PathPatch(
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animation_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Generating an animation by calling `~.pyplot.pause` between plotting commands.

The method shown here is only suitable for simple, low-performance use. For
more demanding applications, look at the :mod:`animation` module and the
more demanding applications, look at the :mod:`.animation` module and the
examples that use it.

Note that calling `time.sleep` instead of `~.pyplot.pause` would *not* work.
Expand Down
2 changes: 1 addition & 1 deletion examples/axes_grid1/demo_colorbar_with_inset_locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
==============================================================

This example shows how to control the position, height, and width of
colorbars using `~mpl_toolkits.axes_grid1.inset_axes`.
colorbars using `~mpl_toolkits.axes_grid1.inset_locator.inset_axes`.

Controlling the placement of the inset axes is done similarly as that of the
legend: either by providing a location option ("upper right", "best", ...), or
Expand Down
13 changes: 8 additions & 5 deletions examples/axisartist/demo_floating_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@

Demonstration of features of the :mod:`.floating_axes` module:

* Using `scatter` and `bar` with changing the shape of the plot.
* Using `GridHelperCurveLinear` to rotate the plot and set the plot boundary.
* Using `FloatingSubplot` to create a subplot using the return value from
`GridHelperCurveLinear`.
* Making a sector plot by adding more features to `GridHelperCurveLinear`.
* Using `~.axes.Axes.scatter` and `~.axes.Axes.bar` with changing the shape of
the plot.
* Using `~.floating_axes.GridHelperCurveLinear` to rotate the plot and set the
plot boundary.
* Using `~.floating_axes.FloatingSubplot` to create a subplot using the return
value from `~.floating_axes.GridHelperCurveLinear`.
* Making a sector plot by adding more features to
`~.floating_axes.GridHelperCurveLinear`.
"""

from matplotlib.transforms import Affine2D
Expand Down
Loading