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

Skip to content

Commit c8571e1

Browse files
committed
removed a trailing whitespace
1 parent 7de798d commit c8571e1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,28 +143,30 @@ def test_inverted_cla():
143143
# plotting an image, then 1d graph, axis is now down
144144
fig = plt.figure(0)
145145
ax = fig.gca()
146-
# test that a new axis is not inverted per default
146+
# 1. test that a new axis is not inverted per default
147147
assert not(ax.xaxis_inverted())
148148
assert not(ax.yaxis_inverted())
149149
img = np.random.random((100, 100))
150150
ax.imshow(img)
151-
# test that a image axis is inverted
151+
# 2. test that a image axis is inverted
152152
assert not(ax.xaxis_inverted())
153153
assert ax.yaxis_inverted()
154+
# 3. test that clearing and plotting a line, axes are
155+
# not inverted
154156
ax.cla()
155157
x = np.linspace(0, 2*np.pi, 100)
156158
ax.plot(x, np.cos(x))
157159
assert not(ax.xaxis_inverted())
158160
assert not(ax.yaxis_inverted())
159161

160-
# autoscaling should not bring back axes to normal
162+
# 4. autoscaling should not bring back axes to normal
161163
ax.cla()
162164
ax.imshow(img)
163165
plt.autoscale()
164166
assert not(ax.xaxis_inverted())
165167
assert ax.yaxis_inverted()
166168

167-
# two shared axes. Clearing the master axis should bring axes in shared
169+
# 5. two shared axes. Clearing the master axis should bring axes in shared
168170
# axies back to normal
169171
ax0 = plt.subplot(211)
170172
ax1 = plt.subplot(212, sharey=ax0)
@@ -173,7 +175,7 @@ def test_inverted_cla():
173175
ax0.cla()
174176
assert not(ax1.yaxis_inverted())
175177
ax1.cla()
176-
# clearing the nonmaster should not touch limits
178+
# 6. clearing the nonmaster should not touch limits
177179
ax0.imshow(img)
178180
ax1.plot(x, np.cos(x))
179181
ax1.cla()

0 commit comments

Comments
 (0)