# Save PyPlot figure as SVG file with text rendered as text, not path

**URL:** https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288
**Category:** New to Julia
**Tags:** pyplot
**Created:** [November 19, 2019, 9:41pm UTC](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288 "2019-11-19T21:41:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hrchen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hrchen/32/8893_2.png) [@hrchen](https://discourse.julialang.org/u/hrchen)
#### Post date: [November 19, 2019, 9:41pm UTC](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288/1 "2019-11-19T21:41:09Z")

</div>

I want to save a PyPlot figure as an SVG file with the text in the figure rendered as editable text, not as a path. I [read](https://matplotlib.org/tutorials/introductory/customizing.html) that in Python one can do: `plt.rcParams['svg.fonttype'] = 'none'` but the following doesn’t work when I open the resulting SVG in Inkscape. Any help is appreciated!

```julia
using PyPlot
plt.rcParams["svg.fonttype"] = "none"

plot(1:10,1:10)
xlabel("text1")
ylabel("text2")

savefig("fig.svg",format="svg")

```

---

<div class="post-metadata">

### Author: ![machakann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/machakann/32/3914_2.png) [@machakann](https://discourse.julialang.org/u/machakann)
#### Post date: [November 21, 2019, 5:20am UTC](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288/2 "2019-11-21T05:20:46Z")

</div>

Hi. According to the [README](https://github.com/JuliaPy/PyPlot.jl#modifying-matplotlibrcparams), you can try the following snippet.

```julia
rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["svg.fonttype"] = "none"

```

Or, probably `rc("svg", fonttype="none")` may also work.

---

<div class="post-metadata">

### Author: ![hrchen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hrchen/32/8893_2.png) [@hrchen](https://discourse.julialang.org/u/hrchen)
#### Post date: [November 21, 2019, 4:34pm UTC](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288/3 "2019-11-21T16:34:07Z")

</div>

Awesome, thanks!
