ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 10 Jul 2018 12:11:12 -0500graph vertex labellinghttp://ask.sagemath.org/question/42892/graph-vertex-labelling/I have a graph (poset actually) that has a rational function labelling each vertex. I would like to show just the edges and the vertex labels. If I try to set `vertex_shape='None'` I get a crash deep in matplotlib. If I try anything else I get the marker symbol printed over the label. For example
P = RootSystem(['A',3]).root_poset()
P.show(vertex_color='white')
Will show the graph with circles over the labels. If I shrink the labels, then the edges cover the labels.
If I do
P = RootSystem(['A',3]).root_poset()
P.show(vertex_color='white', vertex_shape='None')
there is a strange crash.deinstTue, 10 Jul 2018 12:11:12 -0500http://ask.sagemath.org/question/42892/Coloring edges by their labelshttp://ask.sagemath.org/question/9364/coloring-edges-by-their-labels/I'm trying to understand how to use the color_by_label parameter of the Graph.plot() function to set edge colors depending on various conditions. I cannot seem to get any colors to display other than cyan and red, no matter what I put in the edge labels, and, as in the linked image, I cannot seem to reliably get the colors to go with the labels.
In my example, I was trying to set edge color to blue if either of the vertices of an edge is odd, red otherwise.
(Sorry for the external link -- I apparently need to acquire some karma before I can post it here)
[Screen Shot of sage notebook session and graphics output](http://tinypic.com/r/ou5hxt/6)
version. Sage 5.0.1 on Mac OS X 10.8.1, notebook running in ChromemesriFri, 28 Sep 2012 10:39:41 -0500http://ask.sagemath.org/question/9364/