Skip to content

Core dump when using contourf #4730

@MHBalsmeier

Description

@MHBalsmeier

I am experiencing a core dump when using contourf of iris. This is an MWE:

import iris
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import iris.plot as iplt

lat_plot_deg = [45, 40]
lon_plot_deg = [0, 5]
values = [[0, 0], [0, 0]]
ax = plt.axes(projection = ccrs.EckertIII())
lat_coord = iris.coords.DimCoord(lat_plot_deg, standard_name = "latitude")
lon_coord = iris.coords.DimCoord(lon_plot_deg, standard_name = "longitude")
new_cube = iris.cube.Cube(values, dim_coords_and_dims = [(lat_coord, 0), (lon_coord, 1)])
print("Before.")
cf = iplt.contourf(new_cube)
print("After.")

OS: Ubuntu 20.04

Packages:
matplotlib 3.5.2
cartopy 0.20.2
scitools-iris 3.2.1

Any ideas how this could be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions