Skip to content

[Bug]: ContourSet.antialiased attribute not present #26343

@rcomer

Description

@rcomer

Bug summary

The new ContourSet does not have an antialiased attribute. This causes failures in Iris, which checks the attribute.

Code for reproduction

import matplotlib.pyplot as plt

cs = plt.contour([[0, 1], [1, 2]], antialiased=True)
cs.antialiased

Actual outcome

Traceback (most recent call last):
  File "/contour_antialiased.py", line 4, in <module>
    cs.antialiased
AttributeError: 'QuadContourSet' object has no attribute 'antialiased'. Did you mean: '_antialiaseds'?

Expected outcome

With v3.7.1, I can access this attribute.

Additional information

Marking as release critical, as this is a regression.

Operating system

RHEL7

Matplotlib Version

main

Matplotlib Backend

QtAgg

Python version

3.11.4

Jupyter version

N/A

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: contour

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy