How to change colors in plot3d_cube ?

23 views
Skip to first unread message

Yoshihiro Sato

unread,
Jul 24, 2015, 8:45:59 PM7/24/15
to sage-support
Hello,

I am reading Adventure in group theory, written by David Joyner.

I am interested in changing colors of faclet.
There is an option in plot_cube, however there is no option in plot3d_cube.

Would you give me a suggestion how to change colors in plot3d_cube ?

Thanks,
Yoshihiro Sato

References:
-----------------------
plot3d_cube(mv, title=True)

plot_cube(mv, title=True, colors=[(1, 0.63, 1), (1, 1, 0), (1, 0, 0), (0, 1, 0), (1, 0.6, 0.3), (0, 0, 1)])

rubik = CubeGroup()
P = rubik.plot_cube("R^2*U^2*R^2*U^2*R^2*U^2", \
 colors=[orange, (0, 0, 1), (0, 1, 0), (0.9, 0.9, 0.9), (1, 0.9, 0), (1, 0, 0)]);
show(P)
-----------------------

David Joyner

unread,
Jul 24, 2015, 10:08:46 PM7/24/15
to SAGE support
On Fri, Jul 24, 2015 at 8:45 PM, Yoshihiro Sato <sat...@gmail.com> wrote:
> Hello,
>
> I am reading Adventure in group theory, written by David Joyner.
>
> I am interested in changing colors of faclet.
> There is an option in plot_cube, however there is no option in plot3d_cube.
>
> Would you give me a suggestion how to change colors in plot3d_cube ?
>

If you type
rubik.plot3d_cube??
you can see the source code.
Can you go to the source code and change the colors there, then recompile?


> Thanks,
> Yoshihiro Sato
>
> References:
> -----------------------
> plot3d_cube(mv, title=True)
>
> plot_cube(mv, title=True, colors=[(1, 0.63, 1), (1, 1, 0), (1, 0, 0), (0, 1,
> 0), (1, 0.6, 0.3), (0, 0, 1)])
>
> rubik = CubeGroup()
> P = rubik.plot_cube("R^2*U^2*R^2*U^2*R^2*U^2", \
> colors=[orange, (0, 0, 1), (0, 1, 0), (0.9, 0.9, 0.9), (1, 0.9, 0), (1, 0,
> 0)]);
> show(P)
> -----------------------
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages