Ask Your Question
0

Plot for vectors

asked 2020-09-30 17:20:26 -0500

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-09-30 18:03:09 -0500 )edit

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

Alex89 gravatar imageAlex89 ( 2020-10-01 02:50:23 -0500 )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 08:37:14 -0500 )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 10:29:36 -0500 )edit

Noted. I upgraded and it works. Thanks alot.

Alex89 gravatar imageAlex89 ( 2020-10-01 12:07:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-09-30 18:00:17 -0500

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 02:41:40 -0500 )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 08:35:11 -0500 )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-09-30 17:20:26 -0500

Seen: 46 times

Last updated: Sep 30