Skip to content

Reformat references #19788

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
Apr 1, 2021
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
13 changes: 4 additions & 9 deletions examples/color/color_by_yvalue.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.plot
matplotlib.pyplot.plot
# - `matplotlib.axes.Axes.plot` / `matplotlib.pyplot.plot`
20 changes: 7 additions & 13 deletions examples/color/color_cycle_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.axhline
matplotlib.axes.Axes.axvline
matplotlib.pyplot.axhline
matplotlib.pyplot.axvline
matplotlib.axes.Axes.set_facecolor
matplotlib.figure.Figure.suptitle
# - `matplotlib.axes.Axes.axhline` / `matplotlib.pyplot.axhline`
# - `matplotlib.axes.Axes.axvline` / `matplotlib.pyplot.axvline`
# - `matplotlib.axes.Axes.set_facecolor`
# - `matplotlib.figure.Figure.suptitle`
24 changes: 10 additions & 14 deletions examples/color/color_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,15 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.colors
matplotlib.axes.Axes.plot
matplotlib.axes.Axes.set_facecolor
matplotlib.axes.Axes.set_title
matplotlib.axes.Axes.set_xlabel
matplotlib.axes.Axes.set_ylabel
matplotlib.axes.Axes.tick_params
# - `matplotlib.colors`
# - `matplotlib.axes.Axes.plot`
# - `matplotlib.axes.Axes.set_facecolor`
# - `matplotlib.axes.Axes.set_title`
# - `matplotlib.axes.Axes.set_xlabel`
# - `matplotlib.axes.Axes.set_ylabel`
# - `matplotlib.axes.Axes.tick_params`
21 changes: 7 additions & 14 deletions examples/color/colorbar_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,12 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
import matplotlib.colorbar
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.colorbar.Colorbar.minorticks_on
matplotlib.colorbar.Colorbar.minorticks_off
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colorbar.ColorbarBase.minorticks_on`
# - `matplotlib.colorbar.ColorbarBase.minorticks_off`
18 changes: 7 additions & 11 deletions examples/color/colormap_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,12 @@ def plot_color_gradients(cmap_category, cmap_list):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.colors
matplotlib.axes.Axes.imshow
matplotlib.figure.Figure.text
matplotlib.axes.Axes.set_axis_off
# - `matplotlib.colors`
# - `matplotlib.axes.Axes.imshow`
# - `matplotlib.figure.Figure.text`
# - `matplotlib.axes.Axes.set_axis_off`
29 changes: 11 additions & 18 deletions examples/color/custom_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,23 +224,16 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.colors
matplotlib.colors.LinearSegmentedColormap
matplotlib.colors.LinearSegmentedColormap.from_list
matplotlib.cm
matplotlib.cm.ScalarMappable.set_cmap
matplotlib.pyplot.register_cmap
matplotlib.cm.register_cmap
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colors`
# - `matplotlib.colors.LinearSegmentedColormap`
# - `matplotlib.colors.LinearSegmentedColormap.from_list`
# - `matplotlib.cm`
# - `matplotlib.cm.ScalarMappable.set_cmap`
# - `matplotlib.cm.register_cmap`
24 changes: 10 additions & 14 deletions examples/color/named_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,15 @@ def plot_colortable(colors, title, sort_colors=True, emptycols=0):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.colors
matplotlib.colors.rgb_to_hsv
matplotlib.colors.to_rgba
matplotlib.figure.Figure.get_size_inches
matplotlib.figure.Figure.subplots_adjust
matplotlib.axes.Axes.text
matplotlib.patches.Rectangle
# - `matplotlib.colors`
# - `matplotlib.colors.rgb_to_hsv`
# - `matplotlib.colors.to_rgba`
# - `matplotlib.figure.Figure.get_size_inches`
# - `matplotlib.figure.Figure.subplots_adjust`
# - `matplotlib.axes.Axes.text`
# - `matplotlib.patches.Rectangle`
18 changes: 7 additions & 11 deletions examples/images_contours_and_fields/demo_bboximage.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,12 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.image.BboxImage
matplotlib.transforms.Bbox
matplotlib.transforms.TransformedBbox
matplotlib.text.Text
# - `matplotlib.image.BboxImage`
# - `matplotlib.transforms.Bbox`
# - `matplotlib.transforms.TransformedBbox`
# - `matplotlib.text.Text`
15 changes: 5 additions & 10 deletions examples/images_contours_and_fields/figimage_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

"""
import numpy as np
import matplotlib
import matplotlib.pyplot as plt


Expand All @@ -22,14 +21,10 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

matplotlib.figure.Figure
matplotlib.figure.Figure.figimage
matplotlib.pyplot.figimage
# - `matplotlib.figure.Figure`
# - `matplotlib.figure.Figure.figimage` / `matplotlib.pyplot.figimage`
14 changes: 5 additions & 9 deletions examples/images_contours_and_fields/image_zcoord.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,10 @@ def format_coord(x, y):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.format_coord
matplotlib.axes.Axes.imshow
# - `matplotlib.axes.Axes.format_coord`
# - `matplotlib.axes.Axes.imshow`
27 changes: 10 additions & 17 deletions examples/images_contours_and_fields/tricontour_smooth_delaunay.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,22 +142,15 @@ def experiment_res(x, y):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.tricontour
matplotlib.pyplot.tricontour
matplotlib.axes.Axes.tricontourf
matplotlib.pyplot.tricontourf
matplotlib.axes.Axes.triplot
matplotlib.pyplot.triplot
matplotlib.tri
matplotlib.tri.Triangulation
matplotlib.tri.TriAnalyzer
matplotlib.tri.UniformTriRefiner
# - `matplotlib.axes.Axes.tricontour` / `matplotlib.pyplot.tricontour`
# - `matplotlib.axes.Axes.tricontourf` / `matplotlib.pyplot.tricontourf`
# - `matplotlib.axes.Axes.triplot` / `matplotlib.pyplot.triplot`
# - `matplotlib.tri`
# - `matplotlib.tri.Triangulation`
# - `matplotlib.tri.TriAnalyzer`
# - `matplotlib.tri.UniformTriRefiner`
22 changes: 8 additions & 14 deletions examples/images_contours_and_fields/tricontour_smooth_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,13 @@ def function_z(x, y):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.tricontour
matplotlib.pyplot.tricontour
matplotlib.axes.Axes.tricontourf
matplotlib.pyplot.tricontourf
matplotlib.tri
matplotlib.tri.Triangulation
matplotlib.tri.UniformTriRefiner
# - `matplotlib.axes.Axes.tricontour` / `matplotlib.pyplot.tricontour`
# - `matplotlib.axes.Axes.tricontourf` / `matplotlib.pyplot.tricontourf`
# - `matplotlib.tri`
# - `matplotlib.tri.Triangulation`
# - `matplotlib.tri.UniformTriRefiner`
29 changes: 11 additions & 18 deletions examples/images_contours_and_fields/trigradient_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,16 @@ def dipole_potential(x, y):

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.tricontour
matplotlib.pyplot.tricontour
matplotlib.axes.Axes.triplot
matplotlib.pyplot.triplot
matplotlib.tri
matplotlib.tri.Triangulation
matplotlib.tri.CubicTriInterpolator
matplotlib.tri.CubicTriInterpolator.gradient
matplotlib.tri.UniformTriRefiner
matplotlib.axes.Axes.quiver
matplotlib.pyplot.quiver
# - `matplotlib.axes.Axes.tricontour` / `matplotlib.pyplot.tricontour`
# - `matplotlib.axes.Axes.triplot` / `matplotlib.pyplot.triplot`
# - `matplotlib.tri`
# - `matplotlib.tri.Triangulation`
# - `matplotlib.tri.CubicTriInterpolator`
# - `matplotlib.tri.CubicTriInterpolator.gradient`
# - `matplotlib.tri.UniformTriRefiner`
# - `matplotlib.axes.Axes.quiver` / `matplotlib.pyplot.quiver`
30 changes: 11 additions & 19 deletions examples/images_contours_and_fields/triinterp_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,16 @@

#############################################################################
#
# ------------
# .. admonition:: References
#
# References
# """"""""""
# The use of the following functions, methods, classes and modules is shown
# in this example:
#
# The use of the following functions, methods, classes and modules is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.tricontourf
matplotlib.pyplot.tricontourf
matplotlib.axes.Axes.triplot
matplotlib.pyplot.triplot
matplotlib.axes.Axes.contourf
matplotlib.pyplot.contourf
matplotlib.axes.Axes.plot
matplotlib.pyplot.plot
matplotlib.tri
matplotlib.tri.LinearTriInterpolator
matplotlib.tri.CubicTriInterpolator
matplotlib.tri.Triangulation
# - `matplotlib.axes.Axes.tricontourf` / `matplotlib.pyplot.tricontourf`
# - `matplotlib.axes.Axes.triplot` / `matplotlib.pyplot.triplot`
# - `matplotlib.axes.Axes.contourf` / `matplotlib.pyplot.contourf`
# - `matplotlib.axes.Axes.plot` / `matplotlib.pyplot.plot`
# - `matplotlib.tri`
# - `matplotlib.tri.LinearTriInterpolator`
# - `matplotlib.tri.CubicTriInterpolator`
# - `matplotlib.tri.Triangulation`
Loading