ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 01 Oct 2020 00:20:26 +0200Plot for vectorshttps://ask.sagemath.org/question/53675/plot-for-vectors/ V1 = vector([3,2,1])
V2 = vector([2,3,5])
V3 = vector([1,2,3])
plot(V1, color='red', gridlines='minor') + plot(V2, color='yellow') + plot(V3, color='blue')
What's up with the graph? Why are the lines not shown as vectors and why do they not change color?Alex89Thu, 01 Oct 2020 00:20:26 +0200https://ask.sagemath.org/question/53675/plot arbitrary 2 vectorshttps://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 ???Mohamed GaafarSat, 16 Nov 2013 09:45:10 +0100https://ask.sagemath.org/question/10739/Plot Series of 3D Direction Vectors (Not All from Origen)https://ask.sagemath.org/question/9172/plot-series-of-3d-direction-vectors-not-all-from-origen/Hi,
I'm trying to plot a series of vectors. I've pasted what I have below. The problem is that I want to plot the second vector, starting from the end of the first vector. If I run the commands below, I get two vectors plotted as I want (with arrows) but they are both from the origin.
I tried looking at MATPLOTLIB to see what to do but I got stuck.
Is there an easy way to plot a series of vectors in the way that I want?
a=vector([1,1,1])
b=vector([2,2,3])
aPlot=plot(a, legend_label='Vector a')
bPlot=plot(b, legend_label='Vector b')
AllPlot=aPlot+bPlot
AllPlot.show()
Justin1Sun, 22 Jul 2012 14:52:05 +0200https://ask.sagemath.org/question/9172/