Skip to content

Save to SVG file #27

Open
Open

Description

@mroavi

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.

Activity

  1. dpsanders commented on Sep 23, 2020

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

  2. dpsanders commented on Sep 23, 2020

    @dpsanders
    Collaborator

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

  3. mroavi commented on Oct 20, 2020

    @mroavi
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions