All,
sorry if this is stupid beginner’s question…
I have been trying to insert an image in a node using the image attribute with no success. Anything I try gives me the warning:
Warning: “node.svg” was not found as a file or as a shape library member
Warning: No or improper image=“node.svg” for node “0”
And no image is inserted. This happens in any environment I tried (python, Ipython, or directly using the command line commands. I also tried on the Google Colab cloud and also there I get the same error.
This is the code I use (pyGraphViz):
from graphviz import Digraph
G = Digraph(format=‘svg’)
G.node(‘0’,label=“”,image=“node.svg”)
G.render(view=True)
and the dot file:
digraph {
0 [label=“” image=“node.svg”]
}
Thank you for any help you can give me…
marco
PS node.svg can be found here: Dropbox - File Deleted
Marco Buongiorno Nardelli, PhD
University Distinguished Research Professor
University of North Texas
CEMI, Center for Experimental Music and Intermedia
iARTA, Initiative for Advanced Research in Technology and the Arts
ArtSciLab, ATEC @ the University of Texas at Dallas
Associate Fellow, IMéRA - Institut d’Études Avancée d’Aix-Marseille Université