Skip to content

bug: export_contours broken with matplotlib 3.8 #1950

@wpbonelli

Description

@wpbonelli

Describe the bug
With matplotlib 3.8.0, contours exported by export_contours() and export_contourf() are strangely merged/connected. This is the reason CI testing is broken at the moment

To Reproduce
Install matplotlib 3.8.0 and run the test_export.py::test_export_contours() and ...contourf() tests, then load and plot the exported shapes e.g.

with Reader(filename) as r:
    shapes = r.shapes()
    for s in shapes:
        x = [i[0] for i in s.points[:]]
        y = [i[1] for i in s.points[:]]
        plt.plot(x, y)

See #1951

Screenshots
Exported with 3.8.0:

contourf_mpl380_sq

For reference, with 3.7.2 (expected results)

contourf_mpl372_sq

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions