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 19:07:58 +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?Thu, 01 Oct 2020 00:20:26 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/Comment by slelievre for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53678#post-id-53678What operating system? What version of Sage? Based on Python 2 or Python 3? How was it installed? Is this using the Sage REPL or SageNB or Jupyter or other? On a computer or on SageCell or on CoCalc?Thu, 01 Oct 2020 01:03:09 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53678#post-id-53678Comment by Alex89 for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53680#post-id-53680Sage 9.0 on Ubuntu 20.04. Guess I gotta change vers.Thu, 01 Oct 2020 09:50:23 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53680#post-id-53680Comment by slelievre for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53690#post-id-53690When observing a problem in a Sage version older than the latest stable version,
trying the code on SageCell provides a good hint whether the problem is solved,
since it gets upgraded quite fast every time a stable version is released.
(Many thanks to the maintainer for that!)Thu, 01 Oct 2020 17:29:36 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53690#post-id-53690Comment by Alex89 for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53692#post-id-53692Noted. I upgraded and it works. Thanks alot.Thu, 01 Oct 2020 19:07:58 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53692#post-id-53692Comment by eric_g for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53689#post-id-53689Indeed, the issue has been fixed in Sage 9.1, cf. the ticket [#29206](https://trac.sagemath.org/ticket/29206) and these [9.1 release tour notes](https://wiki.sagemath.org/ReleaseTours/sage-9.1#Improvements_in_the_three.js_3D_viewer).Thu, 01 Oct 2020 15:37:14 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53689#post-id-53689Answer by slelievre for <pre><code>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')
</code></pre>
<p>What's up with the graph? Why are the lines not shown as vectors and why do they not change color?</p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?answer=53677#post-id-53677On macOS 10.14.6 with Sage 9.2.beta13, the code in the question gives a plot
with arrows and colors.
![three 3d vectors](/upfiles/1601506743445035.png)
Thu, 01 Oct 2020 01:00:17 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?answer=53677#post-id-53677Comment by Emmanuel Charpentier for <p>On macOS 10.14.6 with Sage 9.2.beta13, the code in the question gives a plot
with arrows and colors.</p>
<p><img alt="three 3d vectors" src="/upfiles/1601506743445035.png"> </p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53679#post-id-53679WorksForMe(TM) too on 9.2.beta13 used through `emacs`' `sage-shell-mode` in Debian testing running on core i7 + 16 GB RAM.Thu, 01 Oct 2020 09:41:40 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53679#post-id-53679Comment by eric_g for <p>On macOS 10.14.6 with Sage 9.2.beta13, the code in the question gives a plot
with arrows and colors.</p>
<p><img alt="three 3d vectors" src="/upfiles/1601506743445035.png"> </p>
https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53688#post-id-53688Probably the OP was using a Sage version <= 9.0, since the reported issue has been fixed in Sage 9.1, cf. [#29206](https://trac.sagemath.org/ticket/29206).Thu, 01 Oct 2020 15:35:11 +0200https://ask.sagemath.org/question/53675/plot-for-vectors/?comment=53688#post-id-53688