Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scipy
- import pylab
- x = scipy.linspace(-2,2,1000)
- 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.5, 'Bom dia ChuChu', fontsize=30, fontweight='bold',
- color='white', horizontalalignment='center')
- pylab.savefig('heart.png')
Add Comment
Please, Sign In to add comment