Here's the code I did in class for the "I love python" heart :)

import pylab
import scipy
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.4, 'I love python', fontsize=24, fontweight='bold',
color='white', horizontalalignment='center')
pylab.savefig('heart.png')
ax = pylab.gca()
ax.yaxis.set_visible(False)
ax.xaxis.set_visible(False)
ax.text(1.5, -2.5, 'By: Jessica')
pylab.show()
--
This is the mail list for Dr He's Python programming class.
http://psychology-courses.appspot.com/
---
You received this message because you are subscribed to the Google Groups "Python Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychology-progra...@googlegroups.com.
Visit this group at http://groups.google.com/group/psychology-programming.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychology-programming/CAHX_8wtGxNRKsdCRyMknWJaDi0wym_wGLVpKk04hFzLOLuakxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.