@@ -112,8 +112,7 @@ def transform_xy(x, y):
112112
113113 # find angles
114114 if self .nth_coord == 0 :
115- xx0 = np .empty_like (yy0 )
116- xx0 .fill (self .value )
115+ xx0 = np .full_like (yy0 , self .value )
117116
118117 xx1 , yy1 = transform_xy (xx0 , yy0 )
119118
@@ -131,8 +130,7 @@ def transform_xy(x, y):
131130 labels = [l for l , m in zip (labels , mask ) if m ]
132131
133132 elif self .nth_coord == 1 :
134- yy0 = np .empty_like (xx0 )
135- yy0 .fill (self .value )
133+ yy0 = np .full_like (xx0 , self .value )
136134
137135 xx1 , yy1 = transform_xy (xx0 , yy0 )
138136
@@ -372,15 +370,13 @@ def get_boundary(self):
372370 """
373371 x0 , x1 , y0 , y1 = self ._extremes
374372 tr = self ._aux_trans
375- xx = np .linspace (x0 , x1 , 100 )
376- yy0 , yy1 = np .empty_like (xx ), np .empty_like (xx )
377- yy0 .fill (y0 )
378- yy1 .fill (y1 )
379373
374+ xx = np .linspace (x0 , x1 , 100 )
375+ yy0 = np .full_like (xx , y0 )
376+ yy1 = np .full_like (xx , y1 )
380377 yy = np .linspace (y0 , y1 , 100 )
381- xx0 , xx1 = np .empty_like (yy ), np .empty_like (yy )
382- xx0 .fill (x0 )
383- xx1 .fill (x1 )
378+ xx0 = np .full_like (yy , x0 )
379+ xx1 = np .full_like (yy , x1 )
384380
385381 xxx = np .concatenate ([xx [:- 1 ], xx1 [:- 1 ], xx [- 1 :0 :- 1 ], xx0 ])
386382 yyy = np .concatenate ([yy0 [:- 1 ], yy [:- 1 ], yy1 [:- 1 ], yy [::- 1 ]])
0 commit comments