Skip to content

PlotMapView.contour_array() is broken #587

@ghost

Description

It seems that the new generalization of the contouring for both structured and unstructured arrays has broken the ability to contour an array that uses np.nan to mask it.

This can reproduced by assigning a single element of any array as np.nan and then trying to call contour_array(). The result is an empty plot. I believe this is a difference from using plt.tricontour() to generate the contours rather than plt.contour().

One solution would be to bring back plt.contour() in the context of structured grids. It seems plt.tricontour() has a known issue with np.nan for masking https://stackoverflow.com/questions/28964453/set-mask-for-matplotlib-tricontourf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions