newbie question : exporting sympy plots to svg

213 views
Skip to first unread message

a.j...@gmail.com

unread,
Jun 19, 2013, 3:32:13 AM6/19/13
to sy...@googlegroups.com
Hello everybody, bonjour tout le monde,
I wonder if there's a way to export sympy plots to svg, as savefig with matplotlib ? 
Actually my aim is to convert this svg file to tkz from inkscape...

thank you,
merci d'avance,

alex

Stefan Krastanov

unread,
Jun 19, 2013, 5:18:07 AM6/19/13
to sy...@googlegroups.com
The plot object has a `save` method. Calling it with a filename ending
on `".svg"` should be enough if you use the matplotlib backend. The
capabilities of the plotting module depend a lot on the backend that
you are using.

>>> a=plot(...)
>>> a.save("*.svg")
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

a.j...@gmail.com

unread,
Jun 19, 2013, 8:05:29 AM6/19/13
to sy...@googlegroups.com
Thank you, it works.
I only tried "savefig"...

Sorry for the noise.
Reply all
Reply to author
Forward
0 new messages