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

Commit 162bd59

Browse files
committed
DOC: More capitalization of Axes
In line with matplotlib#18726. Triggered by matplotlib#22242.
1 parent 027dc6c commit 162bd59

32 files changed

+70
-70
lines changed

‎examples/axes_grid1/demo_colorbar_with_axes_divider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
im1 = ax1.imshow([[1, 2], [3, 4]])
2020
ax1_divider = make_axes_locatable(ax1)
21-
# Add an axes to the right of the main axes.
21+
# Add an Axes to the right of the main Axes.
2222
cax1 = ax1_divider.append_axes("right", size="7%", pad="2%")
2323
cb1 = fig.colorbar(im1, cax=cax1)
2424

2525
im2 = ax2.imshow([[1, 2], [3, 4]])
2626
ax2_divider = make_axes_locatable(ax2)
27-
# Add an axes above the main axes.
27+
# Add an Axes above the main Axes.
2828
cax2 = ax2_divider.append_axes("top", size="7%", pad="2%")
2929
cb2 = fig.colorbar(im2, cax=cax2, orientation="horizontal")
3030
# Change tick position to top (with the default tick position "bottom", ticks

‎examples/axes_grid1/simple_axes_divider1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def label_axes(ax, text):
14-
"""Place a label at the center of an axes, and remove the axis ticks."""
14+
"""Place a label at the center of an Axes, and remove the axis ticks."""
1515
ax.text(.5, .5, text, transform=ax.transAxes,
1616
horizontalalignment="center", verticalalignment="center")
1717
ax.tick_params(bottom=False, labelbottom=False,

‎examples/axes_grid1/simple_colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
ax = plt.subplot()
1212
im = ax.imshow(np.arange(100).reshape((10, 10)))
1313

14-
# create an axes on the right side of ax. The width of cax will be 5%
14+
# create an Axes on the right side of ax. The width of cax will be 5%
1515
# of ax and the padding between cax and ax will be fixed at 0.05 inch.
1616
divider = make_axes_locatable(ax)
1717
cax = divider.append_axes("right", size="5%", pad=0.05)

‎examples/lines_bars_and_markers/fill_between_alpha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134
###############################################################################
135135
# Another handy use of filled regions is to highlight horizontal or vertical
136-
# spans of an axes -- for that Matplotlib has the helper functions
136+
# spans of an Axes -- for that Matplotlib has the helper functions
137137
# `~matplotlib.axes.Axes.axhspan` and `~matplotlib.axes.Axes.axvspan`. See
138138
# :doc:`/gallery/subplots_axes_and_figures/axhspan_demo`.
139139

‎examples/lines_bars_and_markers/gradient_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
by a unit vector *v*. The values at the corners are then obtained by the
1313
lengths of the projections of the corner vectors on *v*.
1414
15-
A similar approach can be used to create a gradient background for an axes.
15+
A similar approach can be used to create a gradient background for an Axes.
1616
In that case, it is helpful to uses Axes coordinates (``extent=(0, 1, 0, 1),
1717
transform=ax.transAxes``) to be independent of the data coordinates.
1818

‎examples/misc/logos2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def create_icon_axes(fig, ax_position, lw_bars, lw_grid, lw_border, rgrid):
8989

9090

9191
def create_text_axes(fig, height_px):
92-
"""Create an axes in *fig* that contains 'matplotlib' as Text."""
92+
"""Create an Axes in *fig* that contains 'matplotlib' as Text."""
9393
ax = fig.add_axes((0, 0, 1, 1))
9494
ax.set_aspect("equal")
9595
ax.set_axis_off()

‎examples/spines/spines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
66
This demo compares:
77
8-
- normal axes, with spines on all four sides;
9-
- an axes with spines only on the left and bottom;
10-
- an axes using custom bounds to limit the extent of the spine.
8+
- normal Axes, with spines on all four sides;
9+
- an Axes with spines only on the left and bottom;
10+
- an Axes using custom bounds to limit the extent of the spine.
1111
"""
1212
import numpy as np
1313
import matplotlib.pyplot as plt

‎examples/subplots_axes_and_figures/axes_box_aspect.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Axes box aspect
44
===============
55
6-
This demo shows how to set the aspect of an axes box directly via
6+
This demo shows how to set the aspect of an Axes box directly via
77
`~.Axes.set_box_aspect`. The box aspect is the ratio between axes height
88
and axes width in physical units, independent of the data limits.
99
This is useful to e.g. produce a square plot, independent of the data it
@@ -119,7 +119,7 @@
119119
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
120120
#
121121
# When setting the box aspect, one may still set the data aspect as well.
122-
# Here we create an axes with a box twice as long as tall and use an "equal"
122+
# Here we create an Axes with a box twice as long as tall and use an "equal"
123123
# data aspect for its contents, i.e. the circle actually stays circular.
124124

125125
fig6, ax = plt.subplots()
@@ -135,8 +135,8 @@
135135
# Box aspect for many subplots
136136
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137137
#
138-
# It is possible to pass the box aspect to an axes at initialization. The
139-
# following creates a 2 by 3 subplot grid with all square axes.
138+
# It is possible to pass the box aspect to an Axes at initialization. The
139+
# following creates a 2 by 3 subplot grid with all square Axes.
140140

141141
fig7, axs = plt.subplots(2, 3, subplot_kw=dict(box_aspect=1),
142142
sharex=True, sharey=True, constrained_layout=True)

‎examples/subplots_axes_and_figures/shared_axis_demo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
===========
55
66
You can share the x or y axis limits for one axis with another by
7-
passing an axes instance as a *sharex* or *sharey* keyword argument.
7+
passing an `~.axes.Axes` instance as a *sharex* or *sharey* keyword argument.
88
99
Changing the axis limits on one axes will be reflected automatically
1010
in the other, and vice-versa, so when you navigate with the toolbar
11-
the axes will follow each other on their shared axes. Ditto for
11+
the Axes will follow each other on their shared axis. Ditto for
1212
changes in the axis scaling (e.g., log vs. linear). However, it is
1313
possible to have differences in tick labeling, e.g., you can selectively
14-
turn off the tick labels on one axes.
14+
turn off the tick labels on one Axes.
1515
1616
The example below shows how to customize the tick labels on the
1717
various axes. Shared axes share the tick locator, tick formatter,
@@ -20,13 +20,13 @@
2020
because you may want to make the tick labels smaller on the upper
2121
axes, e.g., in the example below.
2222
23-
If you want to turn off the ticklabels for a given axes (e.g., on
23+
If you want to turn off the ticklabels for a given Axes (e.g., on
2424
subplot(211) or subplot(212), you cannot do the standard trick::
2525
2626
setp(ax2, xticklabels=[])
2727
2828
because this changes the tick Formatter, which is shared among all
29-
axes. But you can alter the visibility of the labels, which is a
29+
Axes. But you can alter the visibility of the labels, which is a
3030
property::
3131
3232
setp(ax2.get_xticklabels(), visible=False)

‎lib/matplotlib/_constrained_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
often just set to 1 for an equal grid.
3535
3636
Subplotspecs that are derived from this gridspec can contain either a
37-
``SubPanel``, a ``GridSpecFromSubplotSpec``, or an axes. The ``SubPanel`` and
38-
``GridSpecFromSubplotSpec`` are dealt with recursively and each contain an
37+
``SubPanel``, a ``GridSpecFromSubplotSpec``, or an ``Axes``. The ``SubPanel``
38+
and ``GridSpecFromSubplotSpec`` are dealt with recursively and each contain an
3939
analogous layout.
4040
4141
Each ``GridSpec`` has a ``_layoutgrid`` attached to it. The ``_layoutgrid``

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /