I have a dot file generated from my code and want to render it in my output. For this i have seen on the net that the command is something like this on cmd
cmd
Load the file with pydot.graph_from_dot_file to get a pydot.Dot class instance. Then write it to a PNG file with the write_png method.
pydot.graph_from_dot_file
pydot.Dot
write_png
import pydot (graph,) = pydot.graph_from_dot_file('somefile.dot') graph.write_png('somefile.png')