Ask Your Question
1

Plot for vectors

asked 4 years ago

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?

Preview: (hide)

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 ( 4 years ago )

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

Alex89 gravatar imageAlex89 ( 4 years ago )
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 ( 4 years ago )

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 ( 4 years ago )

Noted. I upgraded and it works. Thanks alot.

Alex89 gravatar imageAlex89 ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

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

Preview: (hide)
link

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 ( 4 years ago )
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 ( 4 years ago )

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: 4 years ago

Seen: 2,609 times

Last updated: Oct 01 '20