3 ms·
I arrived at these equations in 2014 when I plotted a heart using Matplotlib for my girlfriend (now my wife). The code and output is available here: https://git
by susam 7y ago
I arrived at these equations in 2014 when I plotted a heart using Matplotlib for my girlfriend (now my wife). The code and output is available here: https://github.com/susam/heart/ https://github.com/susam/heart/. Some of the Matplotlib defaults have changed since then. With the current version of Matplotlib, the following code would produce good results: https://gist.github.com/susam/2a7e38ba632c4a2780fad421d1ca5f61 https://gist.github.com/susam/2a7e38ba632c4a2780fad421d1ca5f....
Today, I thought of sharing a WolframAlpha link to this plot here on Hacker News. I am glad you all liked it! :-)
By the way, I've explained these equations step-by-step along with graph plots for every step in this 6 year old Reddit thread: https://www.reddit.com/comments/1xwuv3/math/cffeykn/ https://www.reddit.com/comments/1xwuv3/math/cffeykn/.