pycallgraph icon indicating copy to clipboard operation
pycallgraph copied to clipboard

Specifying graphviz output type is ignored (was SVG support for output file)

Open bcbcarl opened this issue 10 years ago • 4 comments

$ 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 avatar Oct 09 '13 08:10 bcbcarl

@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 avatar Oct 09 '13 16:10 gak

@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?

bcbcarl avatar Oct 11 '13 06:10 bcbcarl

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.

gak avatar Oct 11 '13 11:10 gak

Any news?

pensnarik avatar Apr 18 '19 07:04 pensnarik