Commit 38927cd
committed
Make FigureCanvasWx ctor signature similar to FigureCanvasBase.
Currently, `FigureCanvasWx` has a signature of `(parent, id, figure)`,
unlike the Canvas classes of other backends, which only take `figure` as
argument. Change `FigureCanvasWx` to be more similar to other backends.
A similar fix will later be applied to `FigureManagerWx` to bring it in
line with other Manager classes.
The ultimate goal is to get rid of `new_figure_manager` and
`new_figure_manager_given_figure` in the backend definitions, which can
be replaced by `return FigureManager(FigureCanvas(Figure(...)), num)` and
`return FigureManager(FigureCanvas(fig, num))` respectively.
Also deprecate the aliases `FigureCanvasWx.frame` and `.tb` (which are
named `.window` and `.toolbar` in all other backends).1 parent e188fae commit 38927cd
File tree
4 files changed
+61
-23
lines changed- doc/api/next_api_changes
- lib/matplotlib/backends
4 files changed
+61
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
617 | 617 | | |
618 | | - | |
| 618 | + | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
624 | 626 | | |
625 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
626 | 639 | | |
627 | 640 | | |
628 | 641 | | |
| |||
1227 | 1240 | | |
1228 | 1241 | | |
1229 | 1242 | | |
1230 | | - | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1231 | 1246 | | |
1232 | 1247 | | |
1233 | 1248 | | |
| |||
1282 | 1297 | | |
1283 | 1298 | | |
1284 | 1299 | | |
1285 | | - | |
1286 | | - | |
| 1300 | + | |
1287 | 1301 | | |
1288 | 1302 | | |
1289 | 1303 | | |
1290 | | - | |
1291 | | - | |
| 1304 | + | |
| 1305 | + | |
1292 | 1306 | | |
1293 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1294 | 1318 | | |
1295 | 1319 | | |
1296 | 1320 | | |
| |||
1477 | 1501 | | |
1478 | 1502 | | |
1479 | 1503 | | |
1480 | | - | |
| 1504 | + | |
| 1505 | + | |
1481 | 1506 | | |
1482 | 1507 | | |
1483 | 1508 | | |
| |||
1493 | 1518 | | |
1494 | 1519 | | |
1495 | 1520 | | |
1496 | | - | |
| 1521 | + | |
1497 | 1522 | | |
1498 | 1523 | | |
1499 | 1524 | | |
| |||
1506 | 1531 | | |
1507 | 1532 | | |
1508 | 1533 | | |
1509 | | - | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1510 | 1537 | | |
1511 | 1538 | | |
1512 | 1539 | | |
| |||
1537 | 1564 | | |
1538 | 1565 | | |
1539 | 1566 | | |
1540 | | - | |
| 1567 | + | |
1541 | 1568 | | |
1542 | 1569 | | |
1543 | 1570 | | |
| |||
1710 | 1737 | | |
1711 | 1738 | | |
1712 | 1739 | | |
1713 | | - | |
| 1740 | + | |
1714 | 1741 | | |
1715 | 1742 | | |
1716 | 1743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments