Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
adding a doctest to make sure 13624 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
seblabbe committed Apr 30, 2014
1 parent 12bbca0 commit 2634500
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sage/graphs/graph_latex.py
Expand Up @@ -1337,6 +1337,22 @@ def dot2tex_picture(self):
%
\end{tikzpicture}
We make sure :trac:`13624` is fixed::
sage: G = DiGraph()
sage: G.add_edge(3333, 88, 'my_label')
sage: G.set_latex_options(edge_labels=True)
sage: print G.latex_options().dot2tex_picture() # optional - dot2tex graphviz
\begin{tikzpicture}[>=latex,line join=bevel,]
%%
\node (3333) at (...bp,...bp) [draw,draw=none] {$3333$};
\node (88) at (...bp,...bp) [draw,draw=none] {$88$};
\draw [black,->] (3333) ..controls (...bp,...bp) and (...bp,...bp) .. (88);
\definecolor{strokecol}{rgb}{0.0,0.0,0.0};
\pgfsetstrokecolor{strokecol}
\draw (...bp,...bp) node {$\text{\texttt{my{\char`\_}label}}$};
%
\end{tikzpicture}
Note: there is a lot of overlap between what tkz_picture and
dot2tex do. It would be best to merge them! dot2tex probably
Expand Down

0 comments on commit 2634500

Please sign in to comment.