0down votefavorite 
<https://stackoverflow.com/questions/46973057/plotting-a-sympy-plot-in-web2py#>

I want to plot a sympy plot in web2py by writing a web2py function 
myplot4() and call it usinghttp://host:port/app/controller/myplot4.png

This is the demo sympy code for a plot which works in a python shell and 
produces a plot.

from sympy import symbolsfrom sympy.plotting import plot
x = symbols('x')
p1 = plot(x*x)
p2 = plot(x)
p1.append(p2[0])
p1

I found a recipe in 
http://www.web2pyslices.com/slice/show/1357/matplotlib-howto

This recipe works imports FigureCanvasAgg and Figure and works fine whereas 
in sympy the import is plot function. I do not know where to start from if 
I want to produce the plot in web2 py by visiting  

http://host:port/app/controller/myplot2.png

Can somebody tell me how to write this


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to