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

Open
bcbcarl opened this Issue Oct 9, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@bcbcarl

bcbcarl commented Oct 9, 2013

$ 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.

@gak

This comment has been minimized.

Show comment
Hide comment
@gak

gak Oct 9, 2013

Owner

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

Owner

gak commented Oct 9, 2013

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

@bcbcarl

This comment has been minimized.

Show comment
Hide comment
@bcbcarl

bcbcarl Oct 11, 2013

@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 commented Oct 11, 2013

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

@gak

This comment has been minimized.

Show comment
Hide comment
@gak

gak Oct 11, 2013

Owner

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.

Owner

gak commented Oct 11, 2013

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.

@ghost ghost assigned gak Oct 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment