Giter Site home page Giter Site logo

chicolucio / matplotlove Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 7.8 MB

Animated hearts for Valentine's Day. Or any day you want to show your love

License: Other

Python 100.00%
matplotlib matplotlib-animation valentine-day love sympy numpy graphics python

matplotlove's Introduction

Matplotlove

author contributions welcome

heart3d01 heart3d02 heart01

heart02 heart03 heart04

A simple project to plot animated hearts for Valentine's Day. Or any day you want to show your love.

The heart shape graphs come from math equations. The script generates points for the equations with SymPy or NumPy and plots the points with Matplotlib.

Valentine's Day, also called Saint Valentine's Day or the Feast of Saint Valentine, is celebrated annually on February 14 in many regions of the world.

Usage

  1. clone the repo, not a package yet :-(
  2. create a virtual environment with Python 3.8+
  3. activate the virtual environment
  4. install dependencies
  5. run the script and follow the instructions
git clone https://github.com/chicolucio/matplotlove
cd matplotlove
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python matplotlove.py

Can I use matplotlove being single?

Sure. And here is a song for you:

Lonely people - America

This is for all the lonely people
Thinking that life has passed them by
Don't give up
Until you drink from the silver cup
And ride that highway in the sky

This is for all the single people
Thinking that love has left them dry
Don't give up
Until you drink from the silver cup
You never know until you try

Well, I'm on my way
Yes, I'm back to stay
Well, I'm on my way back home

This is for all the lonely people
Thinking that life has passed them by
Don't give up
Until you drink from the silver cup
She'll never take you down or
Never give you up
You'll never know until you try

Click in the image below to listen:

america_lonely_people

Contributing

All contributions are welcome.

Issues

Feel free to submit issues regarding:

  • recommendations
  • more heart animations
  • enhancement requests and new useful features
  • code bugs

There are some open issues waiting for your help, see here.

Pull requests

  • before starting to work on your pull request, please submit an issue first
  • fork the repo
  • clone the project to your own machine
  • commit changes to your own branch
  • push your work back up to your fork
  • submit a pull request so that your changes can be reviewed

License

Beerware, see LICENSE. Yeah, I like beer.

matplotlove's People

Contributors

chicolucio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

losesc

matplotlove's Issues

Installable package and separate classes from CLI

As I've read on the README, this project isn't yet an installable package, maybe that would be a good idea!

  • I'll be submitting a PR for just that in some time.

Also, I'd separate the CLI part from the hearts classes, so that the code would be a bit easier to read, but still, if that's not on your scope, please to edit out the changes!

Some ideas

  • a better CLI
    • without eval
    • with options to change frames, interval, blit, size, colormap
    • interaction through sys argv with argparse or similar

More hearts:

Text messages:

It would be nice to be able to put text messages like:

First part of the message

Heart animation

Second part of the message

Slow animations

The animations from classes Heart05 to Heart08 are extremely slow.
I'm not sure why, but I think is due to the Rational method from SymPy.
Think about another way to implement these classes, maybe not using SymPy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.