Commit 7fa3739
committed
Move Axes.collections into hidden children attribute.
The collections can still be accessed via a read-only property, but now
are combined with images, lines, patches, tables and texts for sorting
and drawing purposes.
There was a quite a bit more fallout from this one:
* `streamplot` had to add the arrows after the line collection, so they
would remain on top. Because `FancyArrowPatch` is created in display
coordinates, this meant that their limits changed slightly, as adding
the line collection would have re-adjusted the `Axes.transData`.
* The `test_pre_transform_plotting` image needed to be regenerated
because of the above limit change. I took this opportunity to clean up
some of the previous keep-image-the-same hacks.
* The `test_arrow_contains_point` test image now has 'contained' scatter
points correctly over the arrows.
* Tests in `test_patches.py` needed to be re-ordered slightly as they
were checking alpha between collections and non-collection artists.
* The `test_fancy` legend images needed to be regenerated because
errorbars are correctly drawn as a group now.1 parent 278de8f commit 7fa3739
File tree
12 files changed
+6142
-5294
lines changed- lib
- matplotlib
- axes
- tests
- baseline_images
- test_legend
- test_path
- test_transforms
- mpl_toolkits/mplot3d
12 files changed
+6142
-5294
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | | - | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
1241 | | - | |
1242 | 1241 | | |
1243 | 1242 | | |
1244 | 1243 | | |
| |||
1306 | 1305 | | |
1307 | 1306 | | |
1308 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1309 | 1313 | | |
1310 | 1314 | | |
1311 | 1315 | | |
| |||
2069 | 2073 | | |
2070 | 2074 | | |
2071 | 2075 | | |
2072 | | - | |
| 2076 | + | |
2073 | 2077 | | |
2074 | 2078 | | |
2075 | 2079 | | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
2079 | 2083 | | |
2080 | 2084 | | |
2081 | 2085 | | |
| |||
4346 | 4350 | | |
4347 | 4351 | | |
4348 | 4352 | | |
4349 | | - | |
4350 | 4353 | | |
4351 | 4354 | | |
4352 | 4355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
| |||
222 | 221 | | |
223 | 222 | | |
224 | 223 | | |
225 | | - | |
226 | 224 | | |
227 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
Binary file not shown.
Loading
Lines changed: 326 additions & 310 deletions
Loading
Binary file not shown.
0 commit comments