Skip to content

Matplotlib 2.0.0 crashes on plotting contour of array with two dimensions of size 1 in Python 3.4 #8197

Closed

Description

@jeroenmuller

Bug report

Bug summary

Python crashes on plotting contour of array with two dimensions of size 1.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

im = np.array([[0]])
plt.contour(im)

Actual outcome

Python interpreter craches, with this message:
Floating point exception (core dumped) 

Expected outcome
This is the output I get on Python 2.6.6:
ValueError: zero-size array to reduction operation minimum which has no identity

Matplotlib version
Fedora 23, with Matplotlib 2.0.0 and numpy 1.12.0 installed using pip.

Activity

  1. modified the milestones: , on Mar 10, 2017
  2. added a commit that references this issue on Mar 11, 2017
  3. ianthomas23 commented on Mar 15, 2017

    @ianthomas23
    Member

    Fixed by PR #8227. Thanks for the bug report @jeroenmuller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions