Quoting Ben <[email protected]>:

That is great. Now, is there someway to permanently associate those two
parameters to the graph? i.e., G.show() has the colors and title?

AFAIK no.

You can set positions for vertices with set_pos() and you can attach an arbitrary value to a vertex like

G.set_vertex(2, 'red')

but there seems to be no way to otherwise set default options. There is

G.graphics_array_defaults

that says among other things "'graph_border': True", but it seems to have no effect. Hopefully someone can tell what for it is.

 * * *

New version of Sage will make it possible to say

G.show(vertex_color='red', vertex_colors={'blue': [0, 1], 'green': [2, 3, 4]})

so that you can have a default color for vertices not listed in vertex_colors. Same will be available for edge colors.

--
Jori Mäntysalo

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to