Commit edf8605
committed
Turn ContourSet into a standard Collection artist.
Keep (some) backcompat by making access to ContourSet.collection trigger
the self-replacement of the ContourSet by the old-style list of
PathCollections.
The baseline images are slighly shifted, but the new images actually
look more correct:
- contour_corner_mask_False the old implementation would white out some
extra L-shaped areas between masked regions (particularly visible in
the diff image).
- 3d/contour3d: The order of the "contours" on the panes is a bit
arbitrary, but note that previously on the left pane the white
(medium) contour was drawn first, then overlaid with the blue (low)
contour, then overlaid with the red (high) contour; the new image
draws the contours more consistently in the order blue/white/red.
- 3d/tricontour: The new draw order of the unfilled contours (on the left)
is clearly better, with the highest contour (light green) drawn above
the lower one (medium green).
Limitations:
- 3d contours used to rely on being able to set a different sort_zpos
for each contour level; this change gets rid of that. Per the above
it's not clear this is actually worse in practice...1 parent ba55c52 commit edf8605
File tree
12 files changed
+516
-353
lines changed- doc/api/next_api_changes/deprecations
- lib
- matplotlib
- axes
- tests
- mpl_toolkits/mplot3d
- tests
12 files changed
+516
-353
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2179 | 2179 | | |
2180 | 2180 | | |
2181 | 2181 | | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
2185 | | - | |
| 2182 | + | |
2186 | 2183 | | |
2187 | 2184 | | |
2188 | 2185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | | - | |
| 770 | + | |
| 771 | + | |
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
777 | | - | |
778 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| |||
0 commit comments