You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Doc]: QuadContourSet does not contain a collections attribute like stated in the manual #29575
The QuadContourSet does not contain a collections attribute like the documentation says it should. Could someone verify whether this is a code issue or a documentation issue? I must admit I don't fully understand what is supposed to happen...
Also ax seems to have been renamed to axes.
Code sample: (contours is the QuadContourSet object)
MN = np.linspace(0, 2, 20)
alt = np.linspace(0, 16000, 20)
EAS = np.outer(MN, alt).transpose()
levels=[100, 400]
contours = plt.contour(MN, alt, EAS, levels, colors='k', linewidths=0.5)
Suggested improvement
Change documentation of QuadContourSet to reflect the correct atributes contained.
Activity
rcomer commentedon Feb 4, 2025
Thanks for raising this @kavdborr. We have now updated the documentation. The structure of
ContourSetchanged at v3.8https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.8.0.html#contourset-is-now-a-single-collection
https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.8.0.html#contourset-collections
Fixed nullcline legends