Re: [sage-support] Re: view(g) where g is graph: does not respect colors

2015-12-02 Thread Pedro Cruz
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

Re: [sage-support] Re: view(g) where g is graph: does not respect colors

2015-12-01 Thread Nathann Cohen
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

[sage-support] Re: view(g) where g is graph: does not respect colors

2015-12-01 Thread John H Palmieri
On Tuesday, December 1, 2015 at 9:40:18 AM UTC-8, Pedro Cruz wrote: > > The following code (sage 6.9): > > sage: g = graphs.PetersenGraph() > sage: g.set_latex_options(vertex_color='green') > sage: view(g) > > > produces a black-and-white graph. > Can you use "g.plot()" instead? If so, "g.plot?"

Re: [sage-support] Re: view(g) where g is graph: does not respect colors

2015-12-01 Thread William Stein
On Tue, Dec 1, 2015 at 10:08 AM, John H Palmieri wrote: > On Tuesday, December 1, 2015 at 9:40:18 AM UTC-8, Pedro Cruz wrote: >> >> The following code (sage 6.9): >> >> sage: g = graphs.PetersenGraph() >> sage: g.set_latex_options(vertex_color='green') >> sage: view(g) >>