10000 mod · matplotlib/matplotlib@978f4b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 978f4b6

Browse files
committed
mod
1 parent b2f2e20 commit 978f4b6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,34 @@ def test_get_labels():
4646
def test_label_loc_vertical(fig_test, fig_ref):
4747
ax = fig_test.subplots()
4848
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
49-
ax.set_ylabel('YLabel', loc='top')
50-
ax.set_xlabel('XLabel', loc='right')
49+
ax.set_ylabel('Y Label', loc='top')
50+
ax.set_xlabel('X Label', loc='right')
5151
cbar = fig_test.colorbar(sc)
52-
cbar.set_label("ZLabel", loc='top')
52+
cbar.set_label("Z Label", loc='top')
5353

5454
ax = fig_ref.subplots()
5555
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
56-
ax.set_ylabel('YLabel', y=1, ha='right')
57-
ax.set_xlabel('XLabel', x=1, ha='right')
56+
ax.set_ylabel('Y Label', y=1, ha='right')
57+
ax.set_xlabel('X Label', x=1, ha='right')
5858
cbar = fig_ref.colorbar(sc)
59-
cbar.set_label("ZLabel", y=1, ha='right')
59+
cbar.set_label("Z Label", y=1, ha='right')
6060

6161

6262
@check_figures_equal()
6363
def test_label_loc_horizontal(fig_test, fig_ref):
6464
ax = fig_test.subp 10000 lots()
6565
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
66-
ax.set_ylabel('YLabel', loc='bottom')
67-
ax.set_xlabel('XLabel', loc='left')
66+
ax.set_ylabel('Y Label', loc='bottom')
67+
ax.set_xlabel('X Label', loc='left')
6868
cbar = fig_test.colorbar(sc, orientation='horizontal')
69-
cbar.set_label("ZLabel", loc='left')
69+
cbar.set_label("Z Label", loc='left')
7070

7171
ax = fig_ref.subplots()
7272
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
73-
ax.set_ylabel('YLabel', y=0, ha='left')
74-
ax.set_xlabel('XLabel', x=0, ha='left')
73+
ax.set_ylabel('Y Label', y=0, ha='left')
74+
ax.set_xlabel('X Label', x=0, ha='left')
7575
cbar = fig_ref.colorbar(sc, orientation='horizontal')
76-
cbar.set_label("ZLabel", x=0, ha='left')
76+
cbar.set_label("Z Label", x=0, ha='left')
7777

7878

7979
@check_figures_equal()
@@ -82,17 +82,17 @@ def test_label_loc_rc(fig_test, fig_ref):
8282
"yaxis.labellocation": "top"}):
8383
ax = fig_test.subplots()
8484
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
85-
ax.set_ylabel('YLabel')
86-
ax.set_xlabel('XLabel')
85+
ax.set_ylabel('Y Label')
86+
ax.set_xlabel('X Label')
8787
cbar = fig_test.colorbar(sc, orientation='horizontal')
88-
cbar.set_label("ZLabel")
88+
cbar.set_label("Z Label")
8989

9090
ax = fig_ref.subplots()
9191
sc = ax.scatter([1, 2], [1, 2], c=[1, 2])
92-
ax.set_ylabel('YLabel', y=1, ha='right')
93-
ax.set_xlabel('XLabel', x=1, ha='right')
92+
ax.set_ylabel('Y Label', y=1, ha='right')
93+
ax.set_xlabel('X Label', x=1, ha='right')
9494
cbar = fig_ref.colorbar(sc, orientation='horizontal')
95-
cbar.set_label("ZLabel", x=1, ha='right')
95+
cbar.set_label("Z Label", x=1, ha='right')
9696

9797

9898
@image_comparison(['acorr.png'], style='mpl20')

0 commit comments

Comments
 (0)
0