How to use SVG for custom node shapes in graphviz?

前端 未结 1 997
走了就别回头了
走了就别回头了 2021-02-04 07:14

I\'m trying to use graphviz (the dot command-line tool, to be more specific) to generate a SVG layout of a graph. I would like to use my Inkscape-generated SVG file

相关标签:
1条回答
  • 2021-02-04 08:09

    graphviz only supports SVG input where the width and height attributes are set on <svg> using absolute units (pixels, inches etc.). Inkscape outputs height="100%" width="100%" viewBox="0 0 width_in_pixels height_in_pixels" as attributes on the <svg> element.

    I filed a bug report, and a graphviz developer pointed me to the help for the image attribute, which describes the requirements for using SVG in custom node shapes.

    0 讨论(0)
提交回复
热议问题