Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of -Goverlap=scale flag #220

Open
Velnbur opened this issue Mar 26, 2024 · 4 comments
Open

Add support of -Goverlap=scale flag #220

Velnbur opened this issue Mar 26, 2024 · 4 comments

Comments

@Velnbur
Copy link

Velnbur commented Mar 26, 2024

I'm currently trying to do the same as in Python:

sfdp -x -Goverlap=scale -Tpng ./assets/graph.dot > ./assets/data.png

But I can't figure out how to pass -G flag

@xflr6
Copy link
Owner

xflr6 commented Mar 27, 2024

Hi. There is currently no support for the -G flag in https://graphviz.readthedocs.io/en/stable/api.html#graphviz.render.

I guess you could try to use subprocess.run() from the stdlib to run that rendering command from Python (documentation) in the meantime.

@Velnbur
Copy link
Author

Velnbur commented Mar 27, 2024

As I understood, graphviz Python lib already does the running of the standard graphviz tooling under the hood. So in may case, I can do so, but do you want to add that to the Python lib?

@xflr6
Copy link
Owner

xflr6 commented Mar 27, 2024

running of the standard graphviz tooling under the hood

That's the sole purpose of this library: making it easier to run http://graphviz.org from Python (i.e. an interface for Python). :)

do you want to add that to the Python lib?

IIUC this is a feature request: that's generally fine of course. It just might take a while until someone gets around to imlementing it (if you are not interested in doing so yourself). I just tried to suggest a possible workaround until it is is implemented.

@Velnbur
Copy link
Author

Velnbur commented Mar 27, 2024

I just tried to suggest a possible workaround until it is implemented.

Thank you for that!

So I'll keep this issue for now, until somebody (or even me) will find a way to add that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants