Commit 333cce9
committed
Move Axes.artists into hidden children attribute.
The artists can still be accessed via a read-only property, but now are
combined with collections, images, lines, patches, tables and texts for
sorting and drawing purposes.
Additionally, anything added using `Axes.add_artist` will now appear in
the correct type sublist, and may not appear in `Axes.artists` if it
matches any of the other lists.
There are two test image changes, both of which have to do with `bxp`
and its `patch_artist=True` option. This uses a `Patch` with
`Axes.add_artist` instead of `Axes.plot` and so used to appear in
different order. This change now makes `patch_artist=True` and
`path_artist=False` order the same way, since there's no special
grouping.1 parent 94da8c9 commit 333cce9
File tree
4 files changed
+12
-8
lines changed- lib
- matplotlib
- axes
- tests/baseline_images/test_axes
- mpl_toolkits/axes_grid1
4 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
1236 | 1235 | | |
1237 | 1236 | | |
1238 | 1237 | | |
| |||
1305 | 1304 | | |
1306 | 1305 | | |
1307 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1308 | 1315 | | |
1309 | 1316 | | |
1310 | 1317 | | |
| |||
2035 | 2042 | | |
2036 | 2043 | | |
2037 | 2044 | | |
2038 | | - | |
| 2045 | + | |
2039 | 2046 | | |
2040 | 2047 | | |
2041 | 2048 | | |
| |||
2047 | 2054 | | |
2048 | 2055 | | |
2049 | 2056 | | |
2050 | | - | |
2051 | | - | |
| 2057 | + | |
| 2058 | + | |
2052 | 2059 | | |
2053 | 2060 | | |
2054 | 2061 | | |
| |||
4349 | 4356 | | |
4350 | 4357 | | |
4351 | 4358 | | |
4352 | | - | |
4353 | 4359 | | |
4354 | 4360 | | |
4355 | 4361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| |||
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | | - | |
| 235 | + | |
237 | 236 | | |
238 | 237 | | |
239 | | - | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
| |||
0 commit comments