Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: pcolorfast should validate that regularly spaced X or Y inputs have the right size #28059

Closed
@anntzer

Description

@anntzer

Bug summary

Currently, when X/Y are passed to pcolorfast and are regularly spaced arrays, pcolorfast just uses their first and last values for the image extents, without verifying that the coordinate sizes are actually correct.

Code for reproduction

from pylab import *
gca().pcolorfast(arange(5), arange(13), np.random.rand(20, 20))  # or whatever sizes

Actual outcome

no error

Expected outcome

a validation error

Additional information

No response

Operating system

any

Matplotlib Version

3.9.0.dev1479+g8d3dfce637

Matplotlib Backend

any

Python version

3012

Jupyter version

no

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions