Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Documentation Link
https://matplotlib.org/stable/api/contour_api.html
Problem
It seems that their descriptions are no longer accurate after#25247.
For example
matplotlib/lib/matplotlib/contour.py
Lines 719 to 726 indceb278
allsegs : [level0segs, level1segs, ...] | |
List of all the polygon segments for all the *levels*. | |
For contour lines ``len(allsegs) == len(levels)``, and for | |
filled contour regions ``len(allsegs) = len(levels)-1``. The lists | |
should look like :: | |
level0segs = [polygon0, polygon1, ...] | |
polygon0 = [[x0, y0], [x1, y1], ...] |
Now,level0segs
(.allsegs[0]
) is justpath0
(single Nx2 array of vertices for all contours for level 0), not[polygon0, polygon1, ...]
.
Suggested improvement
No response