using sage functions with data from octave

asked 2011-06-27 10:28:39 -0500

jamlatino gravatar image

Hello, I´m trying to construct a histogram using octave within sage, but I don´t know how to use sage functions with data that comes from octave, here´s what I´m doing:

a = octave.normrnd(50,3,100,1) #this generates a column vector with normal random data b = octave.hist(a) #this generates a histogram from the previous data

bar_chart(b) # this is where I get the following error:

NotImplementedError: Unable to parse output

Is this something that has not been implemented as the message suggests or am I doing something wrong?

edit retag flag offensive close merge delete


Did you mean `b = octave_hist(a)`?

Juanlu001 gravatar imageJuanlu001 ( 2011-06-28 09:30:22 -0500 )edit

Good question, though. I tried `b.sage()`, but also raised a NotImplementedError

Juanlu001 gravatar imageJuanlu001 ( 2011-06-28 09:36:33 -0500 )edit