Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

display axes at the origin

Hi

SageMath Notebook 9.0, Ubuntu 18.04

is it possible to display axes at the origin ?

@interact
def _(al=slider(0.0, 5, 0.1, 3),  bl=slider(0.0, 5, 0.1, 5), cl=slider(0.0, 5, 0.1, 0),
      xl=slider(0.0, 5, 0.1, 2),  yl=slider(0.0, 5, 0.1, 4), zl=slider(0.0, 5, 0.1, 0)):
    startP=(0,0,0)
    v=vector([al,bl,cl]) 
    u=vector([xl,yl,zl])
    P=plot(v, color='black',start=startP)+plot(u, start=startP,color='red')

    show(P, viewer="jmol",axes=True,frame=False)