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

Skip to content

Commit ce25253

Browse files
committed
DOC: add links to examples for a few examples
1 parent adaa8e5 commit ce25253

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

examples/images_contours_and_fields/pcolormesh_levels.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
1010
"""
1111

12+
import matplotlib
1213
import matplotlib.pyplot as plt
1314
from matplotlib.colors import BoundaryNorm
1415
from matplotlib.ticker import MaxNLocator
@@ -55,3 +56,16 @@
5556
fig.tight_layout()
5657

5758
plt.show()
59+
60+
#############################################################################
61+
#
62+
# ------------
63+
#
64+
# References
65+
# """"""""""
66+
#
67+
# The use of the following functions and methods is shown in this example:
68+
69+
matplotlib.axes.Axes.pcolormesh
70+
matplotlib.axes.Axes.contourf
71+
matplotlib.figure.Figure.colorbar

examples/lines_bars_and_markers/simple_plot.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Create a simple plot.
77
"""
88

9+
import matplotlib
910
import matplotlib.pyplot as plt
1011
import numpy as np
1112

@@ -24,3 +25,17 @@
2425

2526
fig.savefig("test.png")
2627
plt.show()
28+
29+
#############################################################################
30+
#
31+
# ------------
32+
#
33+
# References
34+
# """"""""""
35+
#
36+
# The use of the following functions and methods is shown in this example:
37+
38+
matplotlib.axes.Axes.plot
39+
matplotlib.pyplot.plot
40+
matplotlib.pyplot.subplots
41+
matplotlib.figure.Figure.savefig

examples/shapes_and_collections/scatter.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,16 @@
2020

2121
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
2222
plt.show()
23+
24+
#############################################################################
25+
#
26+
# ------------
27+
#
28+
# References
29+
# """"""""""
30+
#
31+
# The use of the following functions and methods is shown in this example:
32+
import matplotlib
33+
34+
matplotlib.axes.Axes.scatter
35+
matplotlib.pyplot.scatter

examples/statistics/histogram_features.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
http://docs.astropy.org/en/stable/visualization/histogram.html
2020
"""
2121

22+
import matplotlib
2223
import numpy as np
2324
import matplotlib.pyplot as plt
2425

@@ -47,3 +48,17 @@
4748
# Tweak spacing to prevent clipping of ylabel
4849
fig.tight_layout()
4950
plt.show()
51+
52+
#############################################################################
53+
#
54+
# ------------
55+
#
56+
# References
57+
# """"""""""
58+
#
59+
# The use of the following functions and methods is shown in this example:
60+
61+
matplotlib.axes.Axes.hist
62+
matplotlib.axes.Axes.set_title
63+
matplotlib.axes.Axes.set_xlabel
64+
matplotlib.axes.Axes.set_ylabel

0 commit comments

Comments
 (0)