Commit 9622598
committed
Stop sorting artists in Figure Options dialog
With matplotlib#18216, the order that artists are added to an Axes is their
canonical order. The dialog should not be sorting them in some other
manner.
Additionally, this fixes a bug in that `apply_callback` indexes back to
the original list, which means that changes will be made to the *wrong*
artist if sorting actually occurred. It also makes the legend almost
entirely wrong as well.
See https://discourse.matplotlib.org/t/bug-on-re-generate-automatic-legend-of-matplotlib-figure-property/225111 parent eaadeb6 commit 9622598
1 file changed
+2
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
| |||
113 | 99 | | |
114 | 100 | | |
115 | 101 | | |
116 | | - | |
| 102 | + | |
117 | 103 | | |
118 | 104 | | |
119 | 105 | | |
| |||
150 | 136 | | |
151 | 137 | | |
152 | 138 | | |
153 | | - | |
| 139 | + | |
154 | 140 | | |
155 | 141 | | |
156 | 142 | | |
| |||
0 commit comments