Skip to content

DOC: add links to examples for a few examples #11019

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 11, 2018
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
14 changes: 14 additions & 0 deletions examples/images_contours_and_fields/pcolormesh_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

"""

import matplotlib
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplotlib.ticker import MaxNLocator
Expand Down Expand Up @@ -55,3 +56,16 @@
fig.tight_layout()

plt.show()

#############################################################################
#
# ------------
#
# References
# """"""""""
#
# The use of the following functions and methods is shown in this example:

matplotlib.axes.Axes.pcolormesh
matplotlib.axes.Axes.contourf
matplotlib.figure.Figure.colorbar
15 changes: 15 additions & 0 deletions examples/lines_bars_and_markers/simple_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Create a simple plot.
"""

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

Expand All @@ -24,3 +25,17 @@

fig.savefig("test.png")
plt.show()

#############################################################################
#
# ------------
#
# References
# """"""""""
#
# The use of the following functions and methods is shown in this example:

matplotlib.axes.Axes.plot
matplotlib.pyplot.plot
matplotlib.pyplot.subplots
matplotlib.figure.Figure.savefig
13 changes: 13 additions & 0 deletions examples/shapes_and_collections/scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@

plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()

#############################################################################
#
# ------------
#
# References
# """"""""""
#
# The use of the following functions and methods is shown in this example:
import matplotlib

matplotlib.axes.Axes.scatter
matplotlib.pyplot.scatter
15 changes: 15 additions & 0 deletions examples/statistics/histogram_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
http://docs.astropy.org/en/stable/visualization/histogram.html
"""

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

Expand Down Expand Up @@ -47,3 +48,17 @@
# Tweak spacing to prevent clipping of ylabel
fig.tight_layout()
plt.show()

#############################################################################
#
# ------------
#
# References
# """"""""""
#
# The use of the following functions and methods is shown in this example:

matplotlib.axes.Axes.hist
matplotlib.axes.Axes.set_title
matplotlib.axes.Axes.set_xlabel
matplotlib.axes.Axes.set_ylabel