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

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 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!

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

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

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

Hi. According to the README, you can try the following snippet.

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

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

Awesome, thanks!