@@ -608,10 +608,10 @@ def _set_star(self):
608608 else :
609609 verts = polypath .vertices
610610
611- top = Path (np .vstack (( verts [0 :4 , : ], verts [7 :10 , : ], verts [0 ]) ))
612- bottom = Path (np .vstack (( verts [3 :8 , : ], verts [3 ]) ))
613- left = Path (np .vstack (( verts [0 :6 , : ], verts [0 ]) ))
614- right = Path (np .vstack (( verts [0 ], verts [5 :10 , : ], verts [0 ]) ))
611+ top = Path (np .concatenate ([ verts [0 :4 ], verts [7 :10 ], verts [0 : 1 ]] ))
612+ bottom = Path (np .concatenate ([ verts [3 :8 ], verts [3 : 4 ]] ))
613+ left = Path (np .concatenate ([ verts [0 :6 ], verts [0 : 1 ]] ))
614+ right = Path (np .concatenate ([ verts [0 : 1 ], verts [5 :10 ], verts [0 : 1 ]] ))
615615
616616 if fs == 'top' :
617617 mpath , mpath_alt = top , bottom
@@ -641,10 +641,10 @@ def _set_hexagon1(self):
641641
642642 # not drawing inside lines
643643 x = np .abs (np .cos (5 * np .pi / 6. ))
644- top = Path (np .vstack (([ - x , 0 ], verts [( 1 , 0 , 5 ), :] , [x , 0 ]) ))
645- bottom = Path (np .vstack (([ - x , 0 ], verts [2 :5 , : ], [x , 0 ]) ))
646- left = Path (verts [( 0 , 1 , 2 , 3 ), : ])
647- right = Path (verts [( 0 , 5 , 4 , 3 ), : ])
644+ top = Path (np .concatenate ([[( - x , 0 ) ], verts [[ 1 , 0 , 5 ]] , [( x , 0 )]] ))
645+ bottom = Path (np .concatenate ([[( - x , 0 ) ], verts [2 :5 ], [( x , 0 )]] ))
646+ left = Path (verts [0 : 4 ])
647+ right = Path (verts [[ 0 , 5 , 4 , 3 ] ])
648648
649649 if fs == 'top' :
650650 mpath , mpath_alt = top , bottom
@@ -675,11 +675,12 @@ def _set_hexagon2(self):
675675
676676 # not drawing inside lines
677677 x , y = np .sqrt (3 ) / 4 , 3 / 4.
678- top = Path (verts [(1 , 0 , 5 , 4 , 1 ), :])
679- bottom = Path (verts [(1 , 2 , 3 , 4 ), :])
680- left = Path (np .vstack (([x , y ], verts [(0 , 1 , 2 ), :],
681- [- x , - y ], [x , y ])))
682- right = Path (np .vstack (([x , y ], verts [(5 , 4 , 3 ), :], [- x , - y ])))
678+ top = Path (verts [[1 , 0 , 5 , 4 , 1 ]])
679+ bottom = Path (verts [1 :5 ])
680+ left = Path (np .concatenate ([
681+ [(x , y )], verts [:3 ], [(- x , - y ), (x , y )]]))
682+ right = Path (np .concatenate ([
683+ [(x , y )], verts [5 :2 :- 1 ], [(- x , - y )]]))
683684
684685 if fs == 'top' :
685686 mpath , mpath_alt = top , bottom
0 commit comments