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

Skip to content

Commit ee77ced

Browse files
committed
Use Axes instead of axes in galleries
Part of #18726.
1 parent 112a225 commit ee77ced

File tree

115 files changed

+337
-337
lines changed

Some content is hidden

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

115 files changed

+337
-337
lines changed

galleries/examples/animation/multiple_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
=======================
3-
Multiple axes animation
3+
Multiple Axes animation
44
=======================
55
66
This example showcases:

galleries/examples/animation/random_walk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def update_lines(num, walks, lines):
4242
# Create lines initially without data
4343
lines = [ax.plot([], [], [])[0] for _ in walks]
4444

45-
# Setting the axes properties
45+
# Setting the Axes properties
4646
ax.set(xlim3d=(0, 1), xlabel='X')
4747
ax.set(ylim3d=(0, 1), ylabel='Y')
4848
ax.set(zlim3d=(0, 1), zlabel='Z')

galleries/examples/axes_grid1/demo_axes_divider.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Axes divider
44
============
55
6-
Axes divider to calculate location of axes and
7-
create a divider for them using existing axes instances.
6+
Axes divider to calculate location of Axes and
7+
create a divider for them using existing Axes instances.
88
"""
99

1010
import matplotlib.pyplot as plt
@@ -30,13 +30,13 @@ def demo_locatable_axes_hard(fig):
3030

3131
divider = SubplotDivider(fig, 2, 2, 2, aspect=True)
3232

33-
# axes for image
33+
# Axes for image
3434
ax = fig.add_subplot(axes_locator=divider.new_locator(nx=0, ny=0))
35-
# axes for colorbar
35+
# Axes for colorbar
3636
ax_cb = fig.add_subplot(axes_locator=divider.new_locator(nx=2, ny=0))
3737

3838
divider.set_horizontal([
39-
Size.AxesX(ax), # main axes
39+
Size.AxesX(ax), # main Axes
4040
Size.Fixed(0.05), # padding, 0.1 inch
4141
Size.Fixed(0.2), # colorbar, 0.3 inch
4242
])

galleries/examples/axes_grid1/demo_axes_grid.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Demo Axes Grid
44
==============
55
6-
Grid of 2x2 images with a single colorbar or with one colorbar per axes.
6+
Grid of 2x2 images with a single colorbar or with one colorbar per Axes.
77
"""
88

99
import matplotlib.pyplot as plt
@@ -17,13 +17,13 @@
1717

1818

1919
# A grid of 2x2 images with 0.05 inch pad between images and only the
20-
# lower-left axes is labeled.
20+
# lower-left Axes is labeled.
2121
grid = ImageGrid(
2222
fig, 141, # similar to fig.add_subplot(141).
2323
nrows_ncols=(2, 2), axes_pad=0.05, label_mode="1")
2424
for ax in grid:
2525
ax.imshow(Z, extent=extent)
26-
# This only affects axes in first column and second row as share_all=False.
26+
# This only affects Axes in first column and second row as share_all=False.
2727
grid.axes_llc.set(xticks=[-2, 0, 2], yticks=[-2, 0, 2])
2828

2929

@@ -37,7 +37,7 @@
3737
grid.cbar_axes[0].colorbar(im)
3838
for cax in grid.cbar_axes:
3939
cax.tick_params(labeltop=False)
40-
# This affects all axes as share_all = True.
40+
# This affects all Axes as share_all = True.
4141
grid.axes_llc.set(xticks=[-2, 0, 2], yticks=[-2, 0, 2])
4242

4343

@@ -50,7 +50,7 @@
5050
im = ax.imshow(Z, extent=extent)
5151
cax.colorbar(im)
5252
cax.tick_params(labeltop=False)
53-
# This affects all axes as share_all = True.
53+
# This affects all Axes as share_all = True.
5454
grid.axes_llc.set(xticks=[-2, 0, 2], yticks=[-2, 0, 2])
5555

5656

@@ -65,7 +65,7 @@
6565
im = ax.imshow(Z, extent=extent, vmin=vlim[0], vmax=vlim[1])
6666
cb = cax.colorbar(im)
6767
cb.set_ticks((vlim[0], vlim[1]))
68-
# This affects all axes as share_all = True.
68+
# This affects all Axes as share_all = True.
6969
grid.axes_llc.set(xticks=[-2, 0, 2], yticks=[-2, 0, 2])
7070

7171

galleries/examples/axes_grid1/demo_axes_grid2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def add_inner_title(ax, title, loc, **kwargs):
3333
ZS = [Z[i::3, :] for i in range(3)]
3434
extent = extent[0], extent[1]/3., extent[2], extent[3]
3535

36-
# *** Demo 1: colorbar at each axes ***
36+
# *** Demo 1: colorbar at each Axes ***
3737
grid = ImageGrid(
3838
# 211 = at the position of fig.add_subplot(211)
3939
fig, 211, nrows_ncols=(1, 3), axes_pad=0.05, label_mode="1", share_all=True,
@@ -60,7 +60,7 @@ def add_inner_title(ax, title, loc, **kwargs):
6060
for ax, z in zip(grid2, ZS):
6161
im = ax.imshow(z, clim=clim, origin="lower", extent=extent)
6262

63-
# With cbar_mode="single", cax attribute of all axes are identical.
63+
# With cbar_mode="single", cax attribute of all Axes are identical.
6464
ax.cax.colorbar(im)
6565

6666
for ax, im_title in zip(grid2, ["(a)", "(b)", "(c)"]):

galleries/examples/axes_grid1/demo_axes_hbox_divider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Using an `.HBoxDivider` to arrange subplots.
77
8-
Note that both axes' location are adjusted so that they have
8+
Note that both Axes' location are adjusted so that they have
99
equal heights while maintaining their aspect ratios.
1010
1111
"""
@@ -36,7 +36,7 @@
3636
# %%
3737
# Using a `.VBoxDivider` to arrange subplots.
3838
#
39-
# Note that both axes' location are adjusted so that they have
39+
# Note that both Axes' location are adjusted so that they have
4040
# equal widths while maintaining their aspect ratios.
4141

4242
fig, (ax1, ax2) = plt.subplots(2, 1)

galleries/examples/axes_grid1/demo_colorbar_of_inset_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
===============================
3-
Adding a colorbar to inset axes
3+
Adding a colorbar to inset Axes
44
===============================
55
"""
66

galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
Colorbar with AxesDivider
66
=========================
77
8-
The `.axes_divider.make_axes_locatable` function takes an existing axes, adds
8+
The `.axes_divider.make_axes_locatable` function takes an existing Axes, adds
99
it to a new `.AxesDivider` and returns the `.AxesDivider`. The `.append_axes`
10-
method of the `.AxesDivider` can then be used to create a new axes on a given
11-
side ("top", "right", "bottom", or "left") of the original axes. This example
12-
uses `.append_axes` to add colorbars next to axes.
10+
method of the `.AxesDivider` can then be used to create a new Axes on a given
11+
side ("top", "right", "bottom", or "left") of the original Axes. This example
12+
uses `.append_axes` to add colorbars next to Axes.
1313
14-
Users should consider simply passing the main axes to the *ax* keyword argument of
15-
`~.Figure.colorbar` instead of creating a locatable axes manually like this.
14+
Users should consider simply passing the main Axes to the *ax* keyword argument of
15+
`~.Figure.colorbar` instead of creating a locatable Axes manually like this.
1616
See :ref:`colorbar_placement`.
1717
"""
1818

galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This example shows how to control the position, height, and width of colorbars
99
using `~mpl_toolkits.axes_grid1.inset_locator.inset_axes`.
1010
11-
Inset axes placement is controlled as for legends: either by providing a *loc*
11+
Inset Axes placement is controlled as for legends: either by providing a *loc*
1212
option ("upper right", "best", ...), or by providing a locator with respect to
1313
the parent bbox. Parameters such as *bbox_to_anchor* and *borderpad* likewise
1414
work in the same way, and are also demonstrated here.

galleries/examples/axes_grid1/demo_edge_colorbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def demo_bottom_cbar(fig):
4444
for cax in grid.cbar_axes:
4545
cax.axis[cax.orientation].set_label("Bar")
4646

47-
# This affects all axes as share_all = True.
47+
# This affects all Axes as share_all = True.
4848
grid.axes_llc.set_xticks([-2, 0, 2])
4949
grid.axes_llc.set_yticks([-2, 0, 2])
5050

@@ -73,7 +73,7 @@ def demo_right_cbar(fig):
7373
for cax in grid.cbar_axes:
7474
cax.axis[cax.orientation].set_label('Foo')
7575

76-
# This affects all axes because we set share_all = True.
76+
# This affects all Axes because we set share_all = True.
7777
grid.axes_llc.set_xticks([-2, 0, 2])
7878
grid.axes_llc.set_yticks([-2, 0, 2])
7979

0 commit comments

Comments
 (0)