Commit 631e9f1
committed
Fix configure_subplots with tool manager
`configure_subplots` requires a) an object from which it can get the
`canvas` property, and b) somewhere it can store its handle for re-use.
The pseudo-toolbar that is used for most `Tool` classes is temporary and
does not provide the latter. However, tools inherit from `ToolBase`
which contains a `canvas` property and they exist for the lifetime of
the toolbar, so can be used instead.
Fixes matplotlib#220881 parent 91f3465 commit 631e9f1
File tree
4 files changed
+8
-8
lines changed- lib/matplotlib/backends
4 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
937 | | - | |
938 | | - | |
| 937 | + | |
939 | 938 | | |
940 | 939 | | |
941 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
988 | 992 | | |
989 | | - | |
990 | | - | |
| 993 | + | |
991 | 994 | | |
992 | 995 | | |
993 | 996 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | | - | |
1246 | | - | |
| 1245 | + | |
1247 | 1246 | | |
1248 | 1247 | | |
1249 | 1248 | | |
| |||
0 commit comments