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

Skip to content

Commit 7ad9801

Browse files
author
Akshay Nair
committed
Tests must follow PEP8 as well
1 parent 3fd1727 commit 7ad9801

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5128,16 +5128,16 @@ def test_remove_shared_axes_relim():
51285128

51295129

51305130
def test_shared_axes_autoscale():
5131-
l = np.arange(-80,90,40)
5132-
t = np.random.random_sample((l.size,l.size))
5131+
l = np.arange(-80, 90, 40)
5132+
t = np.random.random_sample((l.size, l.size))
51335133

51345134
ax1 = plt.subplot(211)
5135-
ax1.set_xlim(-1000,1000)
5136-
ax1.set_ylim(-1000,1000)
5137-
ax1.contour(l,l,t)
5135+
ax1.set_xlim(-1000, 1000)
5136+
ax1.set_ylim(-1000, 1000)
5137+
ax1.contour(l, l, t)
51385138

5139-
ax2 = plt.subplot(212,sharex=ax1,sharey=ax1)
5140-
ax2.contour(l,l,t)
5139+
ax2 = plt.subplot(212, sharex=ax1, sharey=ax1)
5140+
ax2.contour(l, l, t)
51415141
assert not ax1.get_autoscalex_on() and not ax2.get_autoscalex_on()
51425142
assert not ax1.get_autoscaley_on() and not ax2.get_autoscaley_on()
51435143
assert ax1.get_xlim() == ax2.get_xlim() == (-1000, 1000)

0 commit comments

Comments
 (0)