Commit c8e3742
committed
Simplify canvas class control in FigureFrameWx.
Remember that the wx backends have a slightly different init order
because the canvas cannot be instantiated *before* the containing window
(a "frame" in wx parlance), so previously different wx backends
implemented different frame subclasses so that each of them can
instantiate different canvas subclasses.
Instead of doing that (and having to assign them to the private
`_frame_class` attribute, which is a problem e.g. for third-party
backends such as mplcairo), directly pass the canvas class as a
parameter to FigureFrameWx.1 parent ec99c15 commit c8e3742
File tree
4 files changed
+27
-6
lines changed- doc/api/next_api_changes/behavior
- lib/matplotlib/backends
4 files changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
909 | 917 | | |
910 | 918 | | |
911 | 919 | | |
| |||
953 | 961 | | |
954 | 962 | | |
955 | 963 | | |
| 964 | + | |
| 965 | + | |
956 | 966 | | |
957 | 967 | | |
958 | 968 | | |
| |||
1393 | 1403 | | |
1394 | 1404 | | |
1395 | 1405 | | |
1396 | | - | |
1397 | 1406 | | |
1398 | 1407 | | |
1399 | 1408 | | |
| |||
1410 | 1419 | | |
1411 | 1420 | | |
1412 | 1421 | | |
1413 | | - | |
| 1422 | + | |
1414 | 1423 | | |
1415 | 1424 | | |
1416 | 1425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| |||
0 commit comments