You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method does have filename and directory arguments. However, the former is for the name of the source (DOT, text) file. The actual rendering then does dot -Tsvg -O Graph.gv which automatically appends the right file extension to the name (in this case, the rendered file would be Graph.gv.svg):
-O - Automatically generate an output filename based on the input file
name with a .'format' appended. (Causes all -ofile options to be ignored.)
In other words, this follows the idea from the Graphviz commands to specify the format to infer the file extension from instead of the other way around (which AFAIU is what you want to propose, right?).
Note that this is why the .render()-method returns the path to the rendered file.
Note that by default filename is inferred from name, so maybe you want to try:
Hi @xflr6 ,
Thanks for this library!
I would like to request adding either
format
to the dot.render() functionor / and
dot.render
function automatically parse the file format from the render path.I can submit a pull request if needed, just want to discuss this first.
The pain-point at the moment is that to save the graph, I need to either
or do
and none of these is very appealing.
Thanks!
Ge
The text was updated successfully, but these errors were encountered: