Eric,

I tried with threejs. I could not get the labels to show with either
sage 8.0 or sage 8.2beta3. One interesting thing I did find through. I
plotted a sphere, with the opacity=0.2.

S = sphere(center=(0,0,0),size=2,opacity=0.2)
show(S, viewer='threejs',axes=True, axes_labels=['a','b','c'])

In the middle of the sphere there was a red, green and blue axis! No
sign of the labels though.

threejs is certainly faster than jmol. The shading is not as nice
though. Lots of artifacts when rotating.

There is  some weird behavior if I use jmol and axes() together. I end
up with two sets of axes!

from sage.plot.plot3d.plot3d import axes
S = sphere(center=(0,0,0),size=2,opacity=0.2)
S+=axes(6, 3)
show(S, axes=True, frame=True, axes_labels=['a','b','c'])

The set that gets enabled with axes=True is offset.

Its looks like there is much more going on that I don't understand yet.
I'll take a closer look at the code.

Thanks,

Andy




 
On 01/26/2018 11:50 AM, Eric Gourgoulhon wrote:
> Hi,
>
> Le mardi 23 janvier 2018 21:58:35 UTC+1, Andy Howell a écrit :
>
>     I was trying to plot a 3d object and was not sure which axes were
>     which
>     in the plot.
>
>
> Just for this purpose (i.e. finding which axes are which), note that
> you can use the threejs viewer, which automatically labels the axes:
>
> sage: from sage.plot.plot3d.plot3d import axes
> sage: S = axes(6, 3)
> sage: show(S, viewer='threejs')
>
> The default names are (x,y,z), but you can change this:
>
> sage: show(S, viewer='threejs', axes_labels=['a', 'b', 'c'])
>
> Anyway, it will be nice to have colored axes.
>
> Best wishes,
>
> Eric.
> -- 
> You received this message because you are subscribed to the Google
> Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-devel+unsubscr...@googlegroups.com
> <mailto:sage-devel+unsubscr...@googlegroups.com>.
> To post to this group, send email to sage-devel@googlegroups.com
> <mailto:sage-devel@googlegroups.com>.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to