@@ -638,16 +638,16 @@ def test_capstyle():
638
638
extensions = ['png' ])
639
639
def test_capstyle_image ():
640
640
fig = plt .figure ()
641
- ax = fig .add_subplot (1 ,1 , 1 )
641
+ ax = fig .add_subplot (1 , 1 , 1 )
642
642
ax .set_xlim ([- 0.5 , 1.5 ])
643
643
ax .set_ylim ([- 0.5 , 2.5 ])
644
644
645
645
x = np .array ([0.0 , 1.0 , 0.5 ])
646
646
ys = np .array ([[0.0 ], [0.5 ], [1.0 ]]) + np .array ([[0.0 , 0.0 , 1.0 ]])
647
647
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
651
651
line_segments = LineCollection (segs , linewidth = [10 , 15 , 20 ])
652
652
line_segments .set_capstyle ("round" )
653
653
@@ -667,16 +667,16 @@ def test_joinstyle():
667
667
extensions = ['png' ])
668
668
def test_joinstyle_image ():
669
669
fig = plt .figure ()
670
- ax = fig .add_subplot (1 ,1 , 1 )
670
+ ax = fig .add_subplot (1 , 1 , 1 )
671
671
ax .set_xlim ([- 0.5 , 1.5 ])
672
672
ax .set_ylim ([- 0.5 , 2.5 ])
673
673
674
674
x = np .array ([0.0 , 1.0 , 0.5 ])
675
675
ys = np .array ([[0.0 ], [0.5 ], [1.0 ]]) + np .array ([[0.0 , 0.0 , 1.0 ]])
676
676
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
680
680
line_segments = LineCollection (segs , linewidth = [10 , 15 , 20 ])
681
681
line_segments .set_joinstyle ("miter" )
682
682
0 commit comments