【发布时间】:2009-10-03 01:04:07
【问题描述】:
我正在尝试使用 GraphViz 工具来生成一些依赖关系图,但我在获取 dot 导出图像时运气不佳。 SVG 工作正常,但其他任何内容(jpeg、gif、png)都会导致 dot 崩溃。
这是我的图表:
digraph test {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
这是有效的命令行(用于 svg):
dot test.dot -Tsvg -o test.svg
以下是导致崩溃的命令行:
dot test.dot -Tjpg -o test.jpg
dot test.dot -Tjpeg -o test.jpeg
dot test.dot -Tpng -o test.png
我是否遗漏了一些明显的东西?
谢谢,
(注意这是在 WinXP 32 位上使用 2.24 graphviz 包)。
【问题讨论】: