Generate png using Graphviz 2.38.0 on Anaconda Python 2.7

When I do this :

G.draw(‘file.png’)

I have the following error :

Format: “png” not recognized. Use one of: canon cmap cmapx cmapx_np
dot eps fig gv imap imap_np ismap pic plain plain-ext pov ps ps2 svg
svgz tk vml vmlz xdot xdot1.2 xdot1.4

I tried to run

dot -c

This does not seem to change anything.


Source: python

Leave a Reply