%matplotlib inline
import pylab
import scipy
x=scipy.linspace(-2,2,1500)
y1=scipy.sqrt(1-(abs(x)-1)**2)
y2=-3*scipy.sqrt(1-(abs(x)/2)**0.5)
pylab.fill_between(x,y1,color="red")
pylab.fill_between(x,y2,color="red")
pylab.xlim([-2.5,2.5])
pylab.text(0,-0.4,'I LOVE YOU',fontsize=30,fontweight='bold',color='yellow',horizontalalignment='center')
来自学弟的小代码,其中的参数可以任意修改啊。你是什么心啥都行,我最花心哈哈哈
jupyter notebook代码