The latex function
print latex(g) is generating lines like \Vertex[style={minimum size=1.0cm,draw=cv0,fill=cfv0,text=clv0,shape=rectangle},LabelOut=false,L=\hbox{$1$},x=1.5944cm,y=3.3989cm]{v0} and it seems that \Vertex[style={ }] is not working. I've checked tikz-graph manuel and could not find such an example. (maybe only in the version I saw) If I tryied a tex file with \tikzset{VertexStyle/.style = {minimum size=1.0cm,draw=cv0,fill=cv1v3,text=clv0,shape=rectangle}} \Vertex[LabelOut=false,L=\hbox{$1$},x=1.616cm,y=1.6147cm]{v0} and the colors and style are correct. For the moment, I willl use "g.plot(vertex_colors='green')" Thank you. Pedro terça-feira, 1 de Dezembro de 2015 às 21:19:05 UTC, Nathann Cohen escreveu: > > Just completing the answers here, in case somebody needs it: > > 'view(g)' has a different behaviour in Sage and in SMC. In Sage it uses > LaTeX, while in SMC it is more or less equivalent to g.show(method='js') > (which relies on javascript/d3js, hence no latex whatsoever). > > Currently, there is no way to specify a color for the vertices in > g.show(method='js'). It is not hard to add if somebody needs it. I wrote > this code and thus only added there what I needed. What I needed was a way > to 'differentiate' vertices, and I do not mind what the colors are as long > as they are different. > > sage: g = graphs.PetersenGraph() > sage: g.show(method='js', vertex_partition=[g.independent_set()]) > > (I know, the vertex partition is not a vertex partition as not all > vertices appear. The partition is automatically completed if necessary) > > Let me also add that perhaps the colors are not so different from each > other in this picture (I would guess dark blue/light blue) on your screens. > I fixed that in #19591 (needs_review) and the result is blue/orange, which > is much better. > > Have fun, > > Nathann > -- 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.