Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Problem
matplotlib.widgets.SpanSelector
is a useful widget, however only supports one span to be created because of how the class functionality tracks movement and positioning on a screen.
Proposed solution
Would there be interest in anNSpanSelector
, which would generalize SpanSelector to N many spans controlled by a single object?
I've written a demo forNSpanSelector
which is subclass ofSpanSelector
, that corrects the handling functionality for multiple spans. I haven't contributed to many open source projects before. I'm not sure if something like this would even be wanted by others - I had a particular use case where two selectors were needed simultaneously. But since I've written it I'm happy to contribute it!