Hi Robert and Nicolas,

I am looking at your additions to latex options in sage

http://www.sagemath.org/doc/reference/sage/graphs/graph_latex.html

and am having some trouble setting colors for edges and vertices.

sage: P = Poset(([1,2],[[1,2]]))
sage: H = P.hasse_diagram()
sage: H.set_latex_options(format='dot2tex', vertex_label_colors ={1:'red', 
2:'green'})
sage: H.latex_options()
LaTeX options for Digraph on 2 vertices: {'vertex_label_colors': {1: 'red', 2: 
'green'}, 'format': 'dot2tex'}
sage: latex(H)

\begin{tikzpicture}[>=latex,line join=bevel,]
%%
\node (1) at (6bp,57bp) [draw,draw=none] {$1$};
  \node (2) at (6bp,7bp) [draw,draw=none] {$2$};
  \draw [black,->] (1) ..controls (6bp,43.763bp) and (6bp,33.065bp)  .. (2);
%
\end{tikzpicture}

As you can see, the vertices are still black, even after the set_options.
What am I supposed to do?

Thanks,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to