pycallgraph
pycallgraph copied to clipboard
Specifying graphviz output type is ignored (was SVG support for output file)
$ pycallgraph graphviz -o test.svg --output-format=svg -- ./test.py
$ file test.svg
test.svg: PNG image data, 220 x 444, 8-bit/color RGB, non-interlaced
The file generated should have been an SVG file.
@bcbcarl I'm not sure what this is directed for?
Is it for a Graphviz output format option? If so, you can specify the output file type. I don't have a working copy of pycallgraph on me right now, but it would go something like this:
graphviz = GraphvizOutput()
graphviz.output_file = 'output.svg'
graphviz.output_type = 'svg'
etc..
You can also use the command line for the file type.
Otherwise, if you're talking about SVG without Graphviz, I started to a D3.js which can render SVG in HTML with interaction etc. It's on hold at the moment as I'm currently too distracted for this project.
@gak Yes, it is for a Graphviz output format option. I specified output file format but it still generates PNG. How can I specify the output file type from the command line?
Ah ha, looks like that command-line argument has a bug. It seems to be totally ignored, at least from the command-line. Woops!
I'll update the ticket to mention it is a bug.
Any news?