-
Notifications
You must be signed in to change notification settings - Fork 575
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
Instructions to use API to generate and save an SVG file #35
Comments
Hi @DylanMuir, Supposing you have used the API to generate your figure, the SVG for your figure will be in Since I didn't forsee your use case, I do a little trick involving changing the You, on the other hand, will want to use the more formal https://github.com/eligrey/FileSaver.js/, e.g.
which I'm guessing will ultimately look sort of like:
Let me know how it goes... |
Hi @alexlenail, thanks for your feedback! I'm using the AlexNet API, so D3 is not used — how would I then gain access to the blob? I tried the code above but got an empty SVG. |
Hi @DylanMuir, I believe |
Hi
Thanks for providing this code! I would like to use the library to generate figures for a custom network, for which I'm using the API directly, locally. I can produce a figure in an HTML file, but I can't find any docs about how to use the API to generate an SVG file from the figure.
Could you please provide a minimal example that generates and saves an AlexNet figure as SVG?
Thanks
Dylan.
The text was updated successfully, but these errors were encountered: