Jason Grout wrote: > William Stein wrote: >> On Sat, Mar 29, 2008 at 11:49 AM, Jason Grout >> <[EMAIL PROTECTED]> wrote: >>> Robert Miller wrote: >>> > For completeness: >>> > >>> > http://sage.math.washington.edu/home/rlmill/vert_99ff99.png >>> > >>> > http://sage.math.washington.edu/home/rlmill/vert_99ffff.png >>> >>> For anyone who wants to join in on the fun, here is a short @interact >>> for picking the color of the vertices: >>> >>> g=graphs.PetersenGraph() >>> @interact >>> def color_vertices(clr=Color('yellow')): >>> g.show(vertex_colors={clr.html_color(): g.vertices()}) >>> >>> >> Here's a 3d version: >> >> g=graphs.PetersenGraph() >> @interact >> def color_vertices(clr=Color('yellow')): >> g.show(vertex_colors={clr.html_color(): g.vertices()}) >> > > > I'm pretty sure William meant to post something similar to the following: > > g=graphs.PetersenGraph() > @interact > def color_vertices(clr=Color('yellow')): > g.show3d(vertex_colors={clr.rgb(): g.vertices()}) >
And this looks even better: g=graphs.PetersenGraph() @interact def color_vertices(clr=Color('yellow')): g.show3d(vertex_colors={clr.rgb(): g.vertices()},aspect_ratio=[1,1,1]) (that last show3d line should be one line) Note that aspect_ratio argument. I've made a trac ticket addressing the issue: http://trac.sagemath.org/sage_trac/ticket/2724 Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---