Is there a way to give GraphViz an SVG file that is used as a background image?
What I want to do is to draw the graph in the center of an SVG file that contains a frame.
I took a look at the image attribute for a node and though maybe a node that contains the background and where everything of the graph is written over it, but I was not able to do it.
I know that one can take the SVG output and then fuse it with other tools, but it would be nice if there is a way directly with GraphViz.
I think the last one with neato sound promising,
could you give an example?
I am currently strugeling to even get a SVG image to display on Windows, I get the error(Warning: No loadimage plugin for "svg:cairo") and I am trying to install cairo. (PNG Works)
Then modify the result (I just did a hand edit) and insert a node with pos = midpoint of the above graphs’s bb (bounding box). This was inserted: under[pos="260,130" image="image_dir/cow.jpg" label=""]
Like so:
graph {
graph [bb="0,0,522.75,261.5",
bgcolor="#FFFFFF",
fontname=arial,
nodesep=0.33,
rankdir=LR,
ranksep=2
];
// result of hand edit, note my pos is based on bb, but not exact
under[pos="260,130" image="image_dir/cow.jpg" label=""]
node [fillcolor="#FFFFFF",
fontname=arial,
height=0,
label="\N",
margin=0,
shape=none,
style=filled,
width=0
];
edge [color="#000000",
constraint=false,
fontname=arial,
headclip=false,
label=" ",
style=dashed,
tailclip=false
];
// and the rest of the graph