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

Save to SVG file #27

Open
mroavi opened this issue Sep 23, 2020 · 3 comments
Open

Save to SVG file #27

mroavi opened this issue Sep 23, 2020 · 3 comments

Comments

@mroavi
Copy link

mroavi commented Sep 23, 2020

Is there a way to save the resulting picture as an SVG file? I know that with TikzPictures.jl you can use:

save(SVG("output"), tp)

but I haven't been able to connect this with TreeView.jl. The reason I would like to do this is because I don't use Jupyter notebooks. Instead I use Vim + REPL for writing Julia code.

If there exists an alternative to viewing the picture in a vim + REPL environment other than saving it and opening it with e.g. the browser, I would also be interested in knowing what it is. Thanks in advance.

@dpsanders
Copy link
Collaborator

The result of @tree et al. is a TikzGraphs object.
You can save it using the instructions in their docs:

https://nbviewer.jupyter.org/github/JuliaTeX/TikzGraphs.jl/blob/master/doc/TikzGraphs.ipynb

@dpsanders
Copy link
Collaborator

A PR toTreeView.jl saying how to do this would be welcome!

@mroavi
Copy link
Author

mroavi commented Oct 20, 2020

A PR toTreeView.jl saying how to do this would be welcome!

Have you had a chance to look at the PR? Regards.

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