-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Proposal: Interactive Selection Tools #5782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note that the |
Code that provides the proper blit behavior: def start(self):
if self.interactive:
for artist in self.artists:
artist.set_visible(False)
self.canvas.draw()
for artist in self.artists:
artist.set_animated(self.useblit)
artist.set_visible(True)
self.update()
def finish(self):
if self.interactive:
for artist in self.artists:
artist.set_animated(False)
else:
for artist in self.artists:
artist.set_visible(False)
self.canvas.draw_idle() |
👍 from me. I have had similar thoughts (but not done anything about it). |
Great, good thing I already started working on it 😉 |
Just wondering, have you considered the ability to rotate the selector? |
You could add a separate rotation handle and give it a different marker type, but I'm going to hold off on that for now. |
Not unreasonable at all. I was just mentioning as I can imagine it is a route we may take in the future, and it would be nice not to close the door on the possibility of doing so. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
I propose a new module called
interactive_selectors.py
that provides a simplified interface for selection tools that can have interaction after they are drawn.Lasso
,Rectangle
,Polygon
,Ellipse
,Span
, andLine
tools._SelectorWidget
s in favor of these new tools, which would have a much simpler interface and consistent behavior.scikit-image
, and is also provided inPyQtGraph
.interactive=True
(the default).I would prefer to close #5751 and start work on this new module.
The text was updated successfully, but these errors were encountered: