Hi,
I have the following Sage code (it comes from a larger Python program):
from scipy.stats import norm, randint
signalD = randint(0,2);
signal = signalD.rvs(10);
It successfully generates the array "signal" with 10 random elements.
However, this fails:
list_plot(signal)
Traceback (click to the left of this block for traceback)
...
ValueError: The truth value of an array with more than one element
is ambiguous. Use a.any() or a.all()
Any ideas? Using a syntax like list_plot([i for i in signal]) does work,
however.
I'm using Sage 4.7.1 on x86_64 Arch Linux.
Thanks.
--
Renan Birck Pinheiro - Grupo de MicroeletrĂ´nica
<http://www.ufsm.br/gmicro>- Engenharia
Elétrica <http://www.ufsm.br/cee>/UFSM <http://www.ufsm.br>
http://renanbirck.blogspot.com / skype: renan.ee.ufsm
--
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