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()})

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to