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

Documentation update: .svg file images are cropped in new graphiv version #9

Open
wittregr opened this issue May 26, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@wittregr
Copy link

The current version of graphviz included in the Ubuntu 20.04 distribution (graphviz 2.42.2-3build2) generates .svg files that partially crop the image. The issue is with the default monitor dpi (dots-per-inch) used in the new version. Ubuntu and Windows assume a monitor dpi of 96.

The fix/workaround is to code the dpi into the dot command by adding the option -Gdpi=96. So a conversion from a example.out file to a example.svg file now looks like:

dot -Tsvg -Gdpi=96 example.out -oexample.svg

These edits can be done in the chemkin.sh and refinevisualization.sh scripts.
While the current graphviz version on Caviness does not have this issue we may need to address this at some point if/when graphiz versions are updated.

This should be added to the documentation.

@wittregr wittregr added the bug Something isn't working label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant