鸡蛋形状。
eggcellent的Python项目详细描述
茄子
做出完美的蛋形。
安装
它可以通过命令行使用 pip:
pip install eggcellent
用法
使用默认鸡蛋:
fromeggcellentimporteggimportmatplotlib.pyplotaspltplt.scatter([0,1],[0,1],marker=None,verts=egg,s=200)
自己做鸡蛋
fromeggcellentimportmake_eggegg=make_egg(a=2,b=3)
鸡蛋方程是:
r=cos(2θ)+a*cos(θ)+b