Dear all,

since I upgraded from 4.6 to 4.7 (I also moved from a Mac to Ubuntu),
I cannot use a 1-D numpy array in list_plot any more. Is this
intended, or is it a bug? It breaks backwards compatibility and I
don't see the rationale behind it.

Here is an example (just copy and paste into a worksheet):

{{{id=4|
import numpy
///
}}}

{{{id=6|
data = numpy.array([1,4,5,3,3])
///
}}}

{{{id=8|
list_plot(list(data))
///
<html><font color='black'><img src='cell://sage0.png'></font></html>
}}}

{{{id=3|
list_plot(data)
///
Traceback (most recent call last):
(...)
ValueError: The truth value of an array with more than one element is
ambiguous. Use a.any() or a.all()
}}}


Cheers
Stan

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to