Support blitting with changing canvas in some widgets · matplotlib/matplotlib@747155e · GitHub
Skip to content

Commit 747155e

Browse files
committed
Support blitting with changing canvas in some widgets
Approach depends a bit on the widget, but generally: - `self._useblit` only stores the flag passed to __init__ - canvas.supports_blit is checked dynamically when needed - we sometimes have the property `sef.useblit`, which is the effective value of flag and capability - if animated artists are needed that state is set during __init__ based on the flag. This relies on the fact that the flag cannot be changed later, and that the value of "animated" does not play a role for drawing canvases without blit support. Supported: - Button - _SelectorWidget - SpanSelector - ToolLineHandles - ToolHandles - RectangleSelector - LassoSelector - PolygonSelector Not supported yet: - CheckButtons - RadioButtons - Cursor - MultiCursor - Lasso
1 parent f24539f commit 747155e

2 files changed

Lines changed: 33 additions & 18 deletions

File tree

lib/matplotlib/widgets.py

Lines changed: 30 additions & 17 deletions

lib/matplotlib/widgets.pyi

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)