Commit 143cb9a
committed
Create rectangles/lines when the other is accessed
The rectangles/lines attributes exist for backcompat and the expectation
would be that when either one of them is accessed, the other would also
be set in the way the older method does. So, whenever either of the
property is accessed for the first time, it also sets the other
property. This way, it maintains consistency with the old API.1 parent 0f09fa1 commit 143cb9a
File tree
3 files changed
+9
-2
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
- tests
3 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
1015 | | - | |
1016 | 1014 | | |
1017 | 1015 | | |
1018 | 1016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | 1140 | | |
| |||
1157 | 1160 | | |
1158 | 1161 | | |
1159 | 1162 | | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1160 | 1166 | | |
1161 | 1167 | | |
1162 | 1168 | | |
| |||
0 commit comments