Skip to content

Instantly share code, notes, and snippets.

@nuclearsandwich
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuclearsandwich/9008322 to your computer and use it in GitHub Desktop.
Save nuclearsandwich/9008322 to your computer and use it in GitHub Desktop.

Heart

This project contains a simple Python script that plots my heart for my girlfriend.

Requirements

This script should be executed with Python 3.4 or any later version of Python interpreter.

On a Windows system, the following packages must be installed for Python 3.4 from http://www.lfd.uci.edu/~gohlke/pythonlibs/: numpy, dateutil, pyparsing, six and matplotlib.

On a Linux system, the python3-matplotlib package and the packages it depends on must be installed. On a Debian system, the following command may be used to install the required packages and execute the script:

aptitude install python3-matplotlib
python3 heart.py

After the script runs successfully, a PNG file with the plot of the heart is created in the current working directory.

License

This is free software. You are permitted to redistribute and use it in source and binary forms, with or without modification, under the terms of the Simplified BSD License. See the source code for the complete license.

This software is provided WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the source code for the complete disclaimer.

If you redistribute this code with modification, you must remove the strings 'Cutie Pai' and 'Susam' from the last statement in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment