JuliaPlots / JuliaPlots/PlotlyJS.jl
plotting svg
Open
- Dominant language
- Julia
- Stars
- 444
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Wondering if such a snippet would come in handy to others? This plots the Plotly plots in SVG. Comes in handy when I export my notebooks to share with others using html.
```julia
function plot_svg(p::PlotlyJS.SyncPlot)
fn,_ = mktemp()
fn = join([fn, ".svg"])
savefig(p, fn)
open(fn) do f
display("image/svg+xml", read(f, String))
end
end
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.