Showing posts with label graphviz. Show all posts
Showing posts with label graphviz. Show all posts

Saturday, October 10, 2009

Graphs in LaTeX

For conversion of graphs in matlab to dot (AT & T) mode,
graph_to_dot(G, 'filename', '/tmp/my.dot')

Converting dot files to tex:
dot2tex --autosize -tmath ex1.dot > ex1.tex
Found this handy script for converting all .dot files in a directory to .ps; Very handy renaming in bash.
for f in *.dot do ; dot -Tps -o ${f%dot}ps $f ; done