Skip to content
Browse files

polygon: remove unnecessary cast to float_; Path.__init__ will do it.

  • Loading branch information...
1 parent c6cc861 commit 275c6e3f73308854e02f0c763fbe69a8dd5e52b6 @efiring efiring committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/matplotlib/patches.py
View
2 lib/matplotlib/patches.py
@@ -786,7 +786,7 @@ def get_xy(self):
return self._path.vertices
def set_xy(self, xy):
- xy = np.asarray(xy, np.float_)
+ xy = np.asarray(xy)
if self._closed:
if len(xy) and (xy[0] != xy[-1]).any():
xy = np.concatenate([xy, [xy[0]]])

0 comments on commit 275c6e3

Please sign in to comment.
Something went wrong with that request. Please try again.