Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit642c205

Browse files
phobsonMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR#11019: DOC: add links to examples for a few examples
1 parent4507443 commit642c205

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+
importmatplotlib
1213
importmatplotlib.pyplotasplt
1314
frommatplotlib.colorsimportBoundaryNorm
1415
frommatplotlib.tickerimportMaxNLocator
@@ -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+
importmatplotlib
910
importmatplotlib.pyplotasplt
1011
importnumpyasnp
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+
importmatplotlib
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+
importmatplotlib
2223
importnumpyasnp
2324
importmatplotlib.pyplotasplt
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)

[8]ページ先頭

©2009-2025 Movatter.jp