tomateblue

heartTestLearn

Jun 2nd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import scipy
  2. import pylab
  3. x = scipy.linspace(-2,2,1000)
  4. y1 = scipy.sqrt(1-(abs(x)-1)**2)
  5. y2 = -3*scipy.sqrt(1-(abs(x)/2)**0.5)
  6. pylab.fill_between(x, y1, color='red')
  7. pylab.fill_between(x, y2, color='red')
  8. pylab.xlim([-2.5, 2.5])
  9. pylab.text(0, -0.5, 'Bom dia ChuChu', fontsize=30, fontweight='bold',
  10.            color='white', horizontalalignment='center')
  11. pylab.savefig('heart.png')
Add Comment
Please, Sign In to add comment