开发者

Is it possible to include images inside nodes of a DOT-language Graph?

开发者 https://www.devze.com 2023-01-05 10:58 出处:网络
I would like to include images (not only text) inside the nodes of开发者_开发知识库 a DOT-language graph. Is it possible? I didn\'t find any example concerning it.

I would like to include images (not only text) inside the nodes of开发者_开发知识库 a DOT-language graph. Is it possible? I didn't find any example concerning it.

Thanks.


(Assuming you can use Graphviz for your needs)

Reading from the Graphviz documentation:

image

Gives the name of a file containing an image to be displayed inside a node. The image file must be in one of the recognized formats, typically JPEG, PNG, GIF or Postscript, and be able to be converted into the desired output format. Unlike with the shapefile attribute, the image is treated as node content rather than the entire node. In particular, an image can be contained in a node of any shape, not just a rectangle.

0

精彩评论

暂无评论...
验证码 换一张
取 消