8000 Doc build fails with numpy>=2.1.0 · Issue #28780 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Doc build fails with numpy>=2.1.0 #28780
Closed
@jklymak

Description

@jklymak

The doc build is failing with

File "/home/circleci/project/galleries/examples/units/radian_demo.py", line 26, in <module>
        axs[0].plot(x, cos(x), xunits=radians)
                       ^^^^^^
      File "/home/circleci/project/galleries/examples/units/basic_units.py", line 382, in cos
        return [math.cos(val.convert_to(radians).get_value()) for val in x]
                         ^^^^^^^^^^^^^^
    AttributeError: 'numpy.float64' object has no attribute 'convert_to'

We already pinned away from 2.1.0, but that does not protect against 2.1.1, which was just released.

#28779 pins to numpy 2.0. However, the above should be fixed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0