Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Got it: just "acting out of frustration", I did the simplest thing: tested the viewers; threejs, jmol, and tachyon.
And the winner is: for the following code:
1) tachyon doesn't produce a movable object?
2) threejs: ignores "\n"
3) jmol: prints to the graph with "\n" acknowledged!

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True) 
gl += text3d('\n test \n add'+"\n"+"test end",[3,1,1],viewer='jmol' )
gl

This means, it's not sage but some "viewer" funny business (maybe the sage interface though); BTW: I have to test some more but "jmol" is really slow.
Now, the next question is, does this carry over to a HTML save (without slow), and will such work with the complicated plots in sage manifolds.

Got it: just "acting out of frustration", I did the simplest thing: tested the viewers; threejs, jmol, and tachyon.
And the winner is: for the following code:
1) tachyon doesn't produce a movable object?
2) threejs: ignores "\n"
3) jmol: prints to the graph with "\n" acknowledged!

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True) 
gl += text3d('\n test \n add'+"\n"+"test end",[3,1,1],viewer='jmol' )
gl

This means, it's not sage but some "viewer" funny business (maybe the sage interface though); BTW: I have to test some more but "jmol" is really slow.
Now, the next question is, does this carry over to a HTML save (without slow), and will such work with the complicated plots in sage manifolds.

Got it: just "acting out of frustration", I did the simplest thing: tested the viewers; threejs, jmol, and tachyon.
And the winner is: for the following code:
1) tachyon doesn't produce a movable object?
2) threejs: ignores "\n"
3) jmol: prints to the graph with "\n" acknowledged!

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True) 
gl += text3d('\n test \n add'+"\n"+"test end",[3,1,1],viewer='jmol' )
gl

This means, it's not sage but some "viewer" funny business (maybe the sage interface though); BTW: I have to test some more but "jmol" is really slow.
Now, the next question is, does this carry over to a HTML save (without slow), and will such work with the complicated plots in sage manifolds.

Got it: just "acting out of frustration", I did the simplest thing: tested the viewers; threejs, jmol, and tachyon.
And the winner is: for the following code:
1) tachyon doesn't produce a movable object?
2) threejs: ignores "\n"
3) jmol: prints to the graph with "\n" acknowledged!

lim=2
gl=implicit_plot3d(x^2+y^2+z^2==1,(x,-lim,lim),(y,-lim,lim),(z,-lim,lim),color='purple',mesh=True) 
gl += text3d('\n test \n add'+"\n"+"test end",[3,1,1],viewer='jmol' )
gl

This means, it's not sage but some "viewer" funny business (maybe the sage interface though); BTW: I have to test some more but "jmol" is really slow.
Now, the next question is, does this carry over to a HTML save (without slow), and will such work with the complicated plots in sage manifolds.manifolds.

Addendum: After working at it for a while I came across an acceptable example/alternative. Personally I would like to have a "Legend" (which I think threejs has) but this example is usable and well organized.
1) The example visualization: Kerr Black Hole with varying angular momentum, legend(?) and controls!
Note the placement manages to stay visible; whereas my experiments ended up mangling the text while rotating.
2) Source code for same: Source code
Skip down to "Plotting", it has some neat techniques and organization. It behooves you to keep control (opinion, via. "Dictionaries") to corral all the little details and keep them from running wild.