Ask Your Question
0

plot arbitrary 2 vectors

asked 2013-11-16 09:45:10 +0100

Mohamed Gaafar gravatar image

I just tried to plot these 2 vectors a and b:

sage: a = [0, 0, 0, 0, 0, 2/25, 13/20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
sage: b = range(50,70)
sage: plot(a,b)

but an error occurs: ValueError: too many values to unpack any help ???

edit retag flag offensive close merge delete

Comments

What are you trying to plot? Obviously we can't plot 50-d vectors. Also, these are not vector objects.

kcrisman gravatar imagekcrisman ( 2013-11-16 10:43:05 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-16 12:35:32 +0100

calc314 gravatar image

I'm not sure what you are trying to do, but here is something you might be able to modify for your purpose.

a = [0, 0, 0, 0, 0, 2/25, 13/20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
b = range(50,70)
q=map(lambda x: arrow((0,0),x),zip(a,b))
add(q)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-11-16 09:45:10 +0100

Seen: 262 times

Last updated: Nov 16 '13