8000 polygon: remove unnecessary cast to float_; Path.__init__ will do it. · matplotlib/matplotlib@275c6e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 275c6e3

Browse files
committed
polygon: remove unnecessary cast to float_; Path.__init__ will do it.
1 parent c6cc861 commit 275c6e3

File t C948 ree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def get_xy(self):
786786
return self._path.vertices
787787

788788
def set_xy(self, xy):
789-
xy = np.asarray(xy, np.float_)
789+
xy = np.asarray(xy)
790790
if self._closed:
791791
if len(xy) and (xy[0] != xy[-1]).any():
792792
xy = np.concatenate([xy, [xy[0]]])

0 commit comments

Comments
 (0)
0