#!/usr/bin/env python # coding: utf-8 # In[1]: # reference: https://wikidocs.net/65 import pandas as pd from pylab import * get_ipython().run_line_magic('matplotlib', 'inline') x = linspace(-2, 2, 10000) f = lambda x: sqrt(cos(x)) * cos(80*x) + 0.5*sqrt(abs(x)) plt.plot(x, f(x)) # In[5]: # reference: https://www.quora.com/How-can-I-draw-a-heart-using-Python from pylab import * get_ipython().run_line_magic('matplotlib', 'inline') t = arange(0,2*pi, 0.1) x = 16*sin(t)**3 y = 13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t) plt.plot(x,y) # In[6]: #%reset