Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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; see e.g. contour_corner_mask_False.png where the old ("-expected.png") implementation would white out some extra L-shaped areas between masked regions (particularly visible in the diff image).
- Loading branch information
Showing
6 changed files
with
448 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
``ContourSet.collections`` | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
... is deprecated. `.ContourSet` is now implemented as a single `.Collection` of paths, | ||
each path corresponding to a contour level, possibly including multiple unconnected | ||
components. | ||
|
||
During the deprecation period, accessing ``ContourSet.collections`` will revert the | ||
current ContourSet instance to the old object layout, with a separate `.PathCollection` | ||
per contour level. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.