【发布时间】:2013-03-08 07:13:06
【问题描述】:
我尝试在 graphviz 中使用自定义图像节点(节点 d):
digraph foo {
rankdir=LR;
node [shape=record];
a [label="{ <data> 12 | <ref> }", width=1.2]
b [label="{ <data> 99 | <ref> }"];
c [label="{ <data> 37 | <ref> }"];
d [image="X_Shape_Pillar_Yellow.png"];
a:ref:c -> b:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false, arrowsize=1.2];
b:ref:c -> c:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
c:ref:c -> d [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
}
很遗憾,图片没有出现:
我使用以下方法编译了点文件:
dot -v -Tpng list.dot -o list.png
我的代码,包括 png 图片,is stored in github。
如何将替换节点 d 与我的自定义图像一起使用?
【问题讨论】:
标签: image macos svg png graphviz