Skip to content

[Doc]: QuadContourSet does not contain a collections attribute like stated in the manual #29575

@kavdborr

Description

@kavdborr

Documentation Link

https://matplotlib.org/stable/api/contour_api.html#matplotlib.contour.QuadContourSet
https://matplotlib.org/devdocs/api/contour_api.html

Problem

  • Version 3.10.0
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions