Skip to content

Commit bbacae6

Browse files
committed
Reformat references.
Follow-up to #19774.
1 parent 7cc1e72 commit bbacae6

File tree

118 files changed

+858
-1386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+858
-1386
lines changed

examples/color/color_by_yvalue.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@
2424

2525
#############################################################################
2626
#
27-
# ------------
27+
# .. admonition:: References
2828
#
29-
# References
30-
# """"""""""
29+
# The use of the following functions, methods, classes and modules is shown
30+
# in this example:
3131
#
32-
# The use of the following functions, methods, classes and modules is shown
33-
# in this example:
34-
35-
import matplotlib
36-
matplotlib.axes.Axes.plot
37-
matplotlib.pyplot.plot
32+
# - `matplotlib.axes.Axes.plot` / `matplotlib.pyplot.plot`

examples/color/color_cycle_default.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,12 @@
4242

4343
#############################################################################
4444
#
45-
# ------------
45+
# .. admonition:: References
4646
#
47-
# References
48-
# """"""""""
47+
# The use of the following functions, methods, classes and modules is shown
48+
# in this example:
4949
#
50-
# The use of the following functions, methods, classes and modules is shown
51-
# in this example:
52-
53-
import matplotlib
54-
matplotlib.axes.Axes.axhline
55-
matplotlib.axes.Axes.axvline
56-
matplotlib.pyplot.axhline
57-
matplotlib.pyplot.axvline
58-
matplotlib.axes.Axes.set_facecolor
59-
matplotlib.figure.Figure.suptitle
50+
# - `matplotlib.axes.Axes.axhline` / `matplotlib.pyplot.axhline`
51+
# - `matplotlib.axes.Axes.axvline` / `matplotlib.pyplot.axvline`
52+
# - `matplotlib.axes.Axes.set_facecolor`
53+
# - `matplotlib.figure.Figure.suptitle`

examples/color/color_demo.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,15 @@
6363

6464
#############################################################################
6565
#
66-
# ------------
66+
# .. admonition:: References
6767
#
68-
# References
69-
# """"""""""
68+
# The use of the following functions, methods, classes and modules is shown
69+
# in this example:
7070
#
71-
# The use of the following functions, methods, classes and modules is shown
72-
# in this example:
73-
74-
import matplotlib
75-
matplotlib.colors
76-
matplotlib.axes.Axes.plot
77-
matplotlib.axes.Axes.set_facecolor
78-
matplotlib.axes.Axes.set_title
79-
matplotlib.axes.Axes.set_xlabel
80-
matplotlib.axes.Axes.set_ylabel
81-
matplotlib.axes.Axes.tick_params
71+
# - `matplotlib.colors`
72+
# - `matplotlib.axes.Axes.plot`
73+
# - `matplotlib.axes.Axes.set_facecolor`
74+
# - `matplotlib.axes.Axes.set_title`
75+
# - `matplotlib.axes.Axes.set_xlabel`
76+
# - `matplotlib.axes.Axes.set_ylabel`
77+
# - `matplotlib.axes.Axes.tick_params`

examples/color/colorbar_basics.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,12 @@
4747

4848
#############################################################################
4949
#
50-
# ------------
50+
# .. admonition:: References
5151
#
52-
# References
53-
# """"""""""
52+
# The use of the following functions, methods, classes and modules is shown
53+
# in this example:
5454
#
55-
# The use of the following functions, methods, classes and modules is shown
56-
# in this example:
57-
58-
import matplotlib
59-
import matplotlib.colorbar
60-
matplotlib.axes.Axes.imshow
61-
matplotlib.pyplot.imshow
62-
matplotlib.figure.Figure.colorbar
63-
matplotlib.pyplot.colorbar
64-
matplotlib.colorbar.Colorbar.minorticks_on
65-
matplotlib.colorbar.Colorbar.minorticks_off
55+
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
56+
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
57+
# - `matplotlib.colorbar.ColorbarBase.minorticks_on`
58+
# - `matplotlib.colorbar.ColorbarBase.minorticks_off`

examples/color/colormap_reference.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@ def plot_color_gradients(cmap_category, cmap_list):
7171

7272
#############################################################################
7373
#
74-
# ------------
74+
# .. admonition:: References
7575
#
76-
# References
77-
# """"""""""
76+
# The use of the following functions, methods, classes and modules is shown
77+
# in this example:
7878
#
79-
# The use of the following functions, methods, classes and modules is shown
80-
# in this example:
81-
82-
import matplotlib
83-
matplotlib.colors
84-
matplotlib.axes.Axes.imshow
85-
matplotlib.figure.Figure.text
86-
matplotlib.axes.Axes.set_axis_off
79+
# - `matplotlib.colors`
80+
# - `matplotlib.axes.Axes.imshow`
81+
# - `matplotlib.figure.Figure.text`
82+
# - `matplotlib.axes.Axes.set_axis_off`

examples/color/custom_cmap.py

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -224,23 +224,16 @@
224224

225225
#############################################################################
226226
#
227-
# ------------
227+
# .. admonition:: References
228228
#
229-
# References
230-
# """"""""""
229+
# The use of the following functions, methods, classes and modules is shown
230+
# in this example:
231231
#
232-
# The use of the following functions, methods, classes and modules is shown
233-
# in this example:
234-
235-
import matplotlib
236-
matplotlib.axes.Axes.imshow
237-
matplotlib.pyplot.imshow
238-
matplotlib.figure.Figure.colorbar
239-
matplotlib.pyplot.colorbar
240-
matplotlib.colors
241-
matplotlib.colors.LinearSegmentedColormap
242-
matplotlib.colors.LinearSegmentedColormap.from_list
243-
matplotlib.cm
244-
matplotlib.cm.ScalarMappable.set_cmap
245-
matplotlib.pyplot.register_cmap
246-
matplotlib.cm.register_cmap
232+
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
233+
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
234+
# - `matplotlib.colors`
235+
# - `matplotlib.colors.LinearSegmentedColormap`
236+
# - `matplotlib.colors.LinearSegmentedColormap.from_list`
237+
# - `matplotlib.cm`
238+
# - `matplotlib.cm.ScalarMappable.set_cmap`
239+
# - `matplotlib.cm.register_cmap`

examples/color/named_colors.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,15 @@ def plot_colortable(colors, title, sort_colors=True, emptycols=0):
9090

9191
#############################################################################
9292
#
93-
# ------------
93+
# .. admonition:: References
9494
#
95-
# References
96-
# """"""""""
95+
# The use of the following functions, methods, classes and modules is shown
96+
# in this example:
9797
#
98-
# The use of the following functions, methods, classes and modules is shown
99-
# in this example:
100-
101-
import matplotlib
102-
matplotlib.colors
103-
matplotlib.colors.rgb_to_hsv
104-
matplotlib.colors.to_rgba
105-
matplotlib.figure.Figure.get_size_inches
106-
matplotlib.figure.Figure.subplots_adjust
107-
matplotlib.axes.Axes.text
108-
matplotlib.patches.Rectangle
98+
# - `matplotlib.colors`
99+
# - `matplotlib.colors.rgb_to_hsv`
100+
# - `matplotlib.colors.to_rgba`
101+
# - `matplotlib.figure.Figure.get_size_inches`
102+
# - `matplotlib.figure.Figure.subplots_adjust`
103+
# - `matplotlib.axes.Axes.text`
104+
# - `matplotlib.patches.Rectangle`

examples/images_contours_and_fields/demo_bboximage.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@
7171

7272
#############################################################################
7373
#
74-
# ------------
74+
# .. admonition:: References
7575
#
76-
# References
77-
# """"""""""
76+
# The use of the following functions, methods, classes and modules is shown
77+
# in this example:
7878
#
79-
# The use of the following functions, methods, classes and modules is shown
80-
# in this example:
81-
82-
import matplotlib
83-
matplotlib.image.BboxImage
84-
matplotlib.transforms.Bbox
85-
matplotlib.transforms.TransformedBbox
86-
matplotlib.text.Text
79+
# - `matplotlib.image.BboxImage`
80+
# - `matplotlib.transforms.Bbox`
81+
# - `matplotlib.transforms.TransformedBbox`
82+
# - `matplotlib.text.Text`

examples/images_contours_and_fields/figimage_demo.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
"""
99
import numpy as np
10-
import matplotlib
1110
import matplotlib.pyplot as plt
1211

1312

@@ -22,14 +21,11 @@
2221

2322
#############################################################################
2423
#
25-
# ------------
24+
# .. admonition:: References
2625
#
27-
# References
28-
# """"""""""
26+
# The use of the following functions, methods, classes and modules is shown
27+
# in this example:
2928
#
30-
# The use of the following functions, methods, classes and modules is shown
31-
# in this example:
32-
33-
matplotlib.figure.Figure
34-
matplotlib.figure.Figure.figimage
35-
matplotlib.pyplot.figimage
29+
# - `matplotlib.figure.Figure`
30+
# - `matplotlib.figure.Figure.figimage`
31+
# - `matplotlib.pyplot.figimage`

examples/images_contours_and_fields/image_zcoord.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ def format_coord(x, y):
3838

3939
#############################################################################
4040
#
41-
# ------------
41+
# .. admonition:: References
4242
#
43-
# References
44-
# """"""""""
43+
# The use of the following functions, methods, classes and modules is shown
44+
# in this example:
4545
#
46-
# The use of the following functions, methods, classes and modules is shown
47-
# in this example:
48-
49-
import matplotlib
50-
matplotlib.axes.Axes.format_coord
51-
matplotlib.axes.Axes.imshow
46+
# - `matplotlib.axes.Axes.format_coord`
47+
# - `matplotlib.axes.Axes.imshow`

0 commit comments

Comments
 (0)