Skip to content

Reformat references (part 2) #19847

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 5, 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
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ per-file-ignores =
examples/subplots_axes_and_figures/axes_zoom_effect.py: E402
examples/subplots_axes_and_figures/custom_figure_class.py: E402
examples/subplots_axes_and_figures/demo_constrained_layout.py: E402
examples/subplots_axes_and_figures/demo_tight_layout.py: E402
examples/subplots_axes_and_figures/demo_tight_layout.py: E402, E501
examples/subplots_axes_and_figures/figure_size_units.py: E402
examples/subplots_axes_and_figures/secondary_axis.py: E402
examples/subplots_axes_and_figures/two_scales.py: E402
Expand Down
19 changes: 7 additions & 12 deletions examples/axes_grid1/scatter_hist_locatable_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,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 and classes is shown
# in this example:

import matplotlib
import mpl_toolkits
mpl_toolkits.axes_grid1.axes_divider.make_axes_locatable
matplotlib.axes.Axes.set_aspect
matplotlib.axes.Axes.scatter
matplotlib.axes.Axes.hist
# - `mpl_toolkits.axes_grid1.axes_divider.make_axes_locatable`
# - `matplotlib.axes.Axes.set_aspect`
# - `matplotlib.axes.Axes.scatter`
# - `matplotlib.axes.Axes.hist`
15 changes: 5 additions & 10 deletions examples/images_contours_and_fields/affine_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,10 @@ def do_plot(ax, Z, transform):

#############################################################################
#
# ------------
# .. 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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.transforms.Affine2D
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.transforms.Affine2D`
13 changes: 4 additions & 9 deletions examples/images_contours_and_fields/barb_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.barbs
matplotlib.pyplot.barbs
# - `matplotlib.axes.Axes.barbs` / `matplotlib.pyplot.barbs`
15 changes: 5 additions & 10 deletions examples/images_contours_and_fields/barcode_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.figure.Figure.add_axes
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.add_axes`
16 changes: 5 additions & 11 deletions examples/images_contours_and_fields/contour_corner_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,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 and methods is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.axes.Axes.contourf
matplotlib.pyplot.contourf
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.axes.Axes.contourf` / `matplotlib.pyplot.contourf`
26 changes: 9 additions & 17 deletions examples/images_contours_and_fields/contour_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
</gallery/images_contours_and_fields/contour_image>`.
"""

import matplotlib
import numpy as np
import matplotlib.cm as cm
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -57,7 +56,7 @@
###############################################################################
# You can set negative contours to be solid instead of dashed:

matplotlib.rcParams['contour.negative_linestyle'] = 'solid'
plt.rcParams['contour.negative_linestyle'] = 'solid'
fig, ax = plt.subplots()
CS = ax.contour(X, Y, Z, 6, colors='k') # Negative contours default to dashed.
ax.clabel(CS, fontsize=9, inline=True)
Expand Down Expand Up @@ -111,20 +110,13 @@

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

import matplotlib
matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.axes.Axes.clabel
matplotlib.pyplot.clabel
matplotlib.axes.Axes.set_position
matplotlib.axes.Axes.get_position
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.axes.Axes.clabel` / `matplotlib.pyplot.clabel`
# - `matplotlib.axes.Axes.get_position`
# - `matplotlib.axes.Axes.set_position`
21 changes: 7 additions & 14 deletions examples/images_contours_and_fields/contour_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.colors.Normalize
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colors.Normalize`
20 changes: 7 additions & 13 deletions examples/images_contours_and_fields/contour_label_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
</gallery/images_contours_and_fields/contour_demo>`.
"""

import matplotlib
import numpy as np
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -76,17 +75,12 @@ def fmt(x):

#############################################################################
#
# ------------
# .. 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 and classes is shown
# in this example:

matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.axes.Axes.clabel
matplotlib.pyplot.clabel
matplotlib.ticker.LogFormatterMathtext
matplotlib.ticker.TickHelper.create_dummy_axis
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.axes.Axes.clabel` / `matplotlib.pyplot.clabel`
# - `matplotlib.ticker.LogFormatterMathtext`
# - `matplotlib.ticker.TickHelper.create_dummy_axis`
30 changes: 11 additions & 19 deletions examples/images_contours_and_fields/contourf_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.axes.Axes.contourf
matplotlib.pyplot.contourf
matplotlib.axes.Axes.clabel
matplotlib.pyplot.clabel
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.colors.Colormap
matplotlib.colors.Colormap.set_bad
matplotlib.colors.Colormap.set_under
matplotlib.colors.Colormap.set_over
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.axes.Axes.contourf` / `matplotlib.pyplot.contourf`
# - `matplotlib.axes.Axes.clabel` / `matplotlib.pyplot.clabel`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colors.Colormap`
# - `matplotlib.colors.Colormap.set_bad`
# - `matplotlib.colors.Colormap.set_under`
# - `matplotlib.colors.Colormap.set_over`
26 changes: 9 additions & 17 deletions examples/images_contours_and_fields/contourf_hatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,14 @@

#############################################################################
#
# ------------
# .. 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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.contour
matplotlib.pyplot.contour
matplotlib.axes.Axes.contourf
matplotlib.pyplot.contourf
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.axes.Axes.legend
matplotlib.pyplot.legend
matplotlib.contour.ContourSet
matplotlib.contour.ContourSet.legend_elements
# - `matplotlib.axes.Axes.contour` / `matplotlib.pyplot.contour`
# - `matplotlib.axes.Axes.contourf` / `matplotlib.pyplot.contourf`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.axes.Axes.legend` / `matplotlib.pyplot.legend`
# - `matplotlib.contour.ContourSet`
# - `matplotlib.contour.ContourSet.legend_elements`
21 changes: 7 additions & 14 deletions examples/images_contours_and_fields/contourf_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,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 and classes is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.contourf
matplotlib.pyplot.contourf
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
matplotlib.axes.Axes.legend
matplotlib.pyplot.legend
matplotlib.ticker.LogLocator
# - `matplotlib.axes.Axes.contourf` / `matplotlib.pyplot.contourf`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.axes.Axes.legend` / `matplotlib.pyplot.legend`
# - `matplotlib.ticker.LogLocator`
15 changes: 5 additions & 10 deletions examples/images_contours_and_fields/image_annotated_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,10 @@ def func(x, pos):

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


matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.figure.Figure.colorbar
matplotlib.pyplot.colorbar
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
12 changes: 4 additions & 8 deletions examples/images_contours_and_fields/image_antialiasing.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,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 and methods is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.imshow
# - `matplotlib.axes.Axes.imshow`
15 changes: 5 additions & 10 deletions examples/images_contours_and_fields/image_clip_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,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 and methods is shown
# in this example:

import matplotlib
matplotlib.axes.Axes.imshow
matplotlib.pyplot.imshow
matplotlib.artist.Artist.set_clip_path
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.artist.Artist.set_clip_path`
Loading