# How to save static svg with plotly

**URL:** <https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225>\
**Category:** Visualization\
**Tags:** question, plots, plotlyjs\
**Created:** [June 12, 2017, 1:45pm UTC](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225 "2017-06-12T13:45:25Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [June 13, 2017, 10:21am UTC](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225/13 "2017-06-13T10:21:07Z")

</div>

> [@mkborregaard](#):
>
> Have you tried out pgfplots()? Sorry for sounding defensive.

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:

```julia
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.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225)._
