Skip to content

Commit 8b22d5e

Browse files
author
simonpf
committed
Fixed PEP8 compliance.
1 parent 6f1ea6e commit 8b22d5e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/tests/test_collections.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -638,16 +638,16 @@ def test_capstyle():
638638
extensions=['png'])
639639
def test_capstyle_image():
640640
fig = plt.figure()
641-
ax = fig.add_subplot(1,1,1)
641+
ax = fig.add_subplot(1, 1, 1)
642642
ax.set_xlim([-0.5, 1.5])
643643
ax.set_ylim([-0.5, 2.5])
644644

645645
x = np.array([0.0, 1.0, 0.5])
646646
ys = np.array([[0.0], [0.5], [1.0]]) + np.array([[0.0, 0.0, 1.0]])
647647

648-
segs = np.zeros((3,3,2))
649-
segs[:,:,0] = x
650-
segs[:,:,1] = ys
648+
segs = np.zeros((3, 3, 2))
649+
segs[:, :, 0] = x
650+
segs[:, :, 1] = ys
651651
line_segments = LineCollection(segs, linewidth=[10, 15, 20])
652652
line_segments.set_capstyle("round")
653653

@@ -667,16 +667,16 @@ def test_joinstyle():
667667
extensions=['png'])
668668
def test_joinstyle_image():
669669
fig = plt.figure()
670-
ax = fig.add_subplot(1,1,1)
670+
ax = fig.add_subplot(1, 1, 1)
671671
ax.set_xlim([-0.5, 1.5])
672672
ax.set_ylim([-0.5, 2.5])
673673

674674
x = np.array([0.0, 1.0, 0.5])
675675
ys = np.array([[0.0], [0.5], [1.0]]) + np.array([[0.0, 0.0, 1.0]])
676676

677-
segs = np.zeros((3,3,2))
678-
segs[:,:,0] = x
679-
segs[:,:,1] = ys
677+
segs = np.zeros((3, 3, 2))
678+
segs[:, :, 0] = x
679+
segs[:, :, 1] = ys
680680
line_segments = LineCollection(segs, linewidth=[10, 15, 20])
681681
line_segments.set_joinstyle("miter")
682682

0 commit comments

Comments
 (0)