Re[2]: Re[2]: [sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Антон Макаров
Thanks, i’ve already solve the problem… Отправлено из мобильной Почты Mail.ru понедельник, 21 ноября 2022 г., 19:52 +0300 от oscar.j.benja...@gmail.com : >I don't know how you get the handle to the matplotlib figure but there >should be some way to do it. > >On Mon, 21 Nov 2022 at 14:01,

Re: Re[2]: [sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Oscar Benjamin
I don't know how you get the handle to the matplotlib figure but there should be some way to do it. On Mon, 21 Nov 2022 at 14:01, Антон Макаров wrote: > > Thank you for answer. As far as I can understand the p1 variable in my sample > code is the object of mathplotlib library, right? > > > >

Re[2]: [sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Антон Макаров
Thank you for answer. As far as I can understand the p1 variable in my sample code is the object of mathplotlib library, right? Отправлено из мобильной Почты Mail.ru понедельник, 21 ноября 2022 г., 16:51 +0300 от oscar.j.benja...@gmail.com : >SymPy's save function is just using matplotlib

Re: [sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Oscar Benjamin
SymPy's save function is just using matplotlib so the question is not really about SymPy but about matplotlib: https://stackoverflow.com/questions/5453375/matplotlib-svg-as-string-and-not-a-file Oscar On Mon, 21 Nov 2022 at 10:57, Anton Makarov wrote: > > Hi, i need to save figure from svg

[sympy] Sympy plotting module save figure as svg string

2022-11-21 Thread Anton Makarov
Hi, i need to save figure from svg plotting module as svg string in order to insert it latter in my web application. At the moment i can only save plot as svg file: from sympy import symbols from sympy.plotting import plot x = symbols('x') p1 = plot(x, x**2, x**3, (x, 0, 6), show = False)