You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Supposing you have used the API to generate your figure, the SVG for your figure will be in d3.select("#graph-container").html().
Since I didn't forsee your use case, I do a little trick involving changing the href attribute on the download button to btoa(unescape(encodeURIComponent(d3.select("#graph-container").html())))
at the time you click it.
I believe d3.select("#graph-container").html() just grabs the html. So you should be able to substitute in jquery or just classic javascript document.getElementById('graph-container')...
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: