Files
tldr/pages.zh/common/sfdp.md

25 lines
812 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# sfdp
> 从 `graphviz` 文件渲染 `scaled force-directed` 网络图的图像。
> 布局:`dot``neato``twopi``circo``fdp``sfdp``osage` 和 `patchwork`。
> 更多信息:<https://graphviz.org/doc/info/command.html>。
- 渲染一个 PNG 图像,文件名基于输入文件名和输出格式(大写 -O
`sfdp -T {{png}} -O {{path/to/input.gv}}`
- 渲染一个 SVG 图像,并指定输出文件名(小写 -o
`sfdp -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- 以 PS、PDF、SVG、Fig、PNG、GIF、JPEG、JSON 或 DOT 格式渲染输出:
`sfdp -T {{format}} -O {{path/to/input.gv}}`
- 使用 `stdin``stdout` 渲染 GIF 图像:
`echo "{{digraph {this -> that} }}" | sfdp -T {{gif}} > {{path/to/image.gif}}`
- 显示帮助信息:
`sfdp -?`