NS – Python

#! /usr/bin/python3
from matplotlib import pylab
import numpy
x=numpy.linspace(-2,2,1000)
y1=numpy.lib.scimath.sqrt(1-(abs(x)-1)**2)
y2=-3*numpy.lib.scimath.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,-1.5,'Klingons do\nNOT celebrate\nValentines\nDay',fontsize=24,fontweight='bold',color='white',horizontalalignment='center')
pylab.savefig('heart2.png')

Unknown's avatar

About Linuxgal

Need a spiritual home? Consider joining us at Mary Queen of the Universe Latter-day Buddhislamic Free Will Christian UFO Synagogue of Vishnu
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment