How to save static svg with plotly

I tried the pgfplots() backend, and actually it works fine (except for the bug below). This is my new favorite from now on for high-quality plots. Thanks!

To me you did not sound defensive. At the same time, I apologize if I came across as complaining about anything related to Plots.jl, I find this a great library and appreciate the effort of everyone involved. I was just asking for help.

Incidentally, I found that the LaTeX comment character can mess up plots with pgfplots(), MWE:

using Plots
pgfplots()
p = plot(1:5, 1:5, title = "unsanitized %")
savefig(p, "/tmp/x.pdf")

Is this known, or should I report it as an issue? Could not find it. Would be happy to make a PR with some guidance for the proper entry point.

EDIT: I wonder why I can’t mark your answer as a solution.

2 Likes