Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52efc1 commit 7c83eccCopy full SHA for 7c83ecc
lib/matplotlib/widgets.py
@@ -1895,8 +1895,14 @@ def _set_active_handle(self, event):
1895
self._extents_on_press = x1, x2, y1, y2
1896
1897
@property
1898
- def path(self):
1899
- return self.to_draw.get_path()
+ def geometry(self):
+ if hasattr(self.to_draw, 'get_verts'):
1900
+ xfm = self.ax.transData.inverted()
1901
+ y, x = xfm.transform(self.to_draw.get_verts()).T
1902
+ return np.array([x[:-1], y[:-1]])
1903
+ else:
1904
+ return np.array(self.to_draw.get_data())
1905
+
1906
1907
1908
class EllipseSelector(RectangleSelector):
0 commit comments