g = Graph([(i,(i+1)%6,i%2) for i in range(6)]) h = Graph([(i,(i+2)%6,i%2) for i in range(6)]) k = Graph([(i,(i+3)%6,i%2) for i in range(6) if i<3]) pos = graphs.CycleGraph(6).get_pos() g.set_pos(pos) h.set_pos(pos) k.set_pos(pos) p = g.plot(color_by_label={0:'blue', 1:'red'}, edge_style='dashed', vertex_labels=False,vertex_size=0) p+= h.plot(color_by_label={0:'blue', 1:'green'}, vertex_labels=False,vertex_size=0) p+= k.plot(color_by_label={0:'brown', 1:'black'}, edge_style='dotted') p.show(axes=False)
On Sun, Jun 1, 2014 at 1:36 PM, Tom Boothby <tomas.boot...@gmail.com> wrote: > If you partition the edges into several graphs, you can sum their > plots. Just remember axes=false when you show(). > > On Sat, May 31, 2014 at 8:07 AM, Ursula Whitcher <whitc...@uwec.edu> wrote: >> On 5/30/2014 11:47 PM, P Purkayastha wrote: >>> >>> Perhaps you can try using different colors instead of different line >>> styles. There is an option called 'color_by_label', where you can set a >>> label for some edges and color them accordingly. >> >> >> I am aware of this option, but I want to be able to color AND dash lines. >> >> --Ursula. >> >> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to sage-support@googlegroups.com. >> Visit this group at http://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.