ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 16 Nov 2013 05:35:32 -0600plot arbitrary 2 vectorshttp://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/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 ???Sat, 16 Nov 2013 02:45:10 -0600http://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/Comment by kcrisman for <p>I just tried to plot these 2 vectors a and b:</p>
<pre><code>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)
</code></pre>
<p>but an error occurs: ValueError: too many values to unpack any help ???</p>
http://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/?comment=16691#post-id-16691What are you trying to plot? Obviously we can't plot 50-d vectors. Also, these are not vector objects.Sat, 16 Nov 2013 03:43:05 -0600http://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/?comment=16691#post-id-16691Answer by calc314 for <p>I just tried to plot these 2 vectors a and b:</p>
<pre><code>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)
</code></pre>
<p>but an error occurs: ValueError: too many values to unpack any help ???</p>
http://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/?answer=15703#post-id-15703I'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)
Sat, 16 Nov 2013 05:35:32 -0600http://ask.sagemath.org/question/10739/plot-arbitrary-2-vectors/?answer=15703#post-id-15703