Ask Your Question
1

Plot for vectors

asked 2020-10-01 00:20:26 +0100

Alex89 gravatar image
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?

edit retag flag offensive close merge delete

Comments

1

What 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?

slelievre gravatar imageslelievre ( 2020-10-01 01:03:09 +0100 )edit

Sage 9.0 on Ubuntu 20.04. Guess I gotta change vers.

Alex89 gravatar imageAlex89 ( 2020-10-01 09:50:23 +0100 )edit
1

Indeed, the issue has been fixed in Sage 9.1, cf. the ticket #29206 and these 9.1 release tour notes.

eric_g gravatar imageeric_g ( 2020-10-01 15:37:14 +0100 )edit

When 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!)

slelievre gravatar imageslelievre ( 2020-10-01 17:29:36 +0100 )edit

Noted. I upgraded and it works. Thanks alot.

Alex89 gravatar imageAlex89 ( 2020-10-01 19:07:58 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-10-01 01:00:17 +0100

slelievre gravatar image

On macOS 10.14.6 with Sage 9.2.beta13, the code in the question gives a plot with arrows and colors.

three 3d vectors

edit flag offensive delete link more

Comments

WorksForMe(TM) too on 9.2.beta13 used through emacs' sage-shell-mode in Debian testing running on core i7 + 16 GB RAM.

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2020-10-01 09:41:40 +0100 )edit
1

Probably the OP was using a Sage version <= 9.0, since the reported issue has been fixed in Sage 9.1, cf. #29206.

eric_g gravatar imageeric_g ( 2020-10-01 15:35:11 +0100 )edit

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: 2020-10-01 00:20:26 +0100

Seen: 2,365 times

Last updated: Oct 01 '20