Ticket #11334: trac_11334-matrix_plot.patch

File trac_11334-matrix_plot.patch, 751 bytes (added by fbissey, 7 years ago)

tentative fix for matrix_plot.py - not sure it is the right thing to do as we have a change of behavior rather than output.

  • sage/plot/matrix_plot.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1354827994 -46800
    # Node ID 5ffe42c86d9be3e3dbab51fc5dc07f2c55ff1853
    # Parent  411abd7f4d20cafd3d2ef1ee1f5278be6396b2ba
    trac 11334: upgrade to numpy 1.7 - change to new error message in matrix_plot.py
    
    diff --git a/sage/plot/matrix_plot.py b/sage/plot/matrix_plot.py
    a b  
    438438        sage: matrix_plot([[sin(x), cos(x)], [1, 0]])
    439439        Traceback (most recent call last):
    440440        ...
    441         ValueError: can not convert entries to floating point numbers
     441        TypeError: mat must be a Matrix or a two dimensional array
    442442
    443443    Test that sparse matrices also work with subdivisions::
    444444