Commit 151de3c
committed
Remove auto-call to canvas.draw_idle in ResizeEvent processing.
Backends can call draw_idle themselves. Note that 1) this was already
done by the gtk backends, and 2) this may actually be unneeded, as
figure.set_size_inches (which is always called a bit earlier by the
various resize handlers) also marks the figure as stale, which should
trigger a redraw too. Still, let's add the draw_idle calls to be safe,
they shouldn't be costly as both draws should get compressed together;
we can always investigate removing them later.1 parent 2cdec10 commit 151de3cCopy full SHA for 151de3c
File tree
Expand file treeCollapse file tree
5 files changed
+4
-4
lines changedOpen diff view settings
Filter options
- lib/matplotlib
- backends
Expand file treeCollapse file tree
5 files changed
+4
-4
lines changedOpen diff view settings
Collapse file
lib/matplotlib/backend_bases.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1277 | 1277 | |
1278 | 1278 | |
1279 | 1279 | |
1280 | | - |
1281 | | - |
1282 | | - |
1283 | | - |
1284 | 1280 | |
1285 | 1281 | |
1286 | 1282 | |
|
Collapse file
lib/matplotlib/backends/_backend_tk.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/_backend_tk.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
241 | 241 | |
242 | 242 | |
243 | 243 | |
| 244 | + |
244 | 245 | |
245 | 246 | |
246 | 247 | |
|
Collapse file
lib/matplotlib/backends/backend_qt.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
348 | 348 | |
349 | 349 | |
350 | 350 | |
| 351 | + |
351 | 352 | |
352 | 353 | |
353 | 354 | |
|
Collapse file
lib/matplotlib/backends/backend_webagg_core.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_webagg_core.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
343 | 343 | |
344 | 344 | |
345 | 345 | |
| 346 | + |
346 | 347 | |
347 | 348 | |
348 | 349 | |
|
Collapse file
lib/matplotlib/backends/backend_wx.py
Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
705 | 705 | |
706 | 706 | |
707 | 707 | |
| 708 | + |
708 | 709 | |
709 | 710 | |
710 | 711 | |
|
0 commit comments