Python: How to export Sympy image to png? [closed]
Python: How to export Sympy image to png?
Who has any idea with this?
Use the saveimage
method:
import sympy
x, y, z = sympy.symbols('xyz')
p = sympy.Plot(x * y ** 3 - y * x ** 3)
p.saveimage('/tmp/plot.png', format='png')
精彩评论