In [27]:
from matplotlib import pyplot as plt
import numpy as np
plt.xkcd()
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
plt.xticks([])
plt.yticks([])
ax.set_ylim([-20, 10])
data = np.ones(100)
data[70:] -= np.arange(30)
plt.annotate(
'The day I learnt\ncooking food',
xy=(70, 1), arrowprops=dict(arrowstyle='->'), xytext=(15, -10))
plt.plot(data)
plt.xlabel('Time')
plt.ylabel('My Hunger')
plt.show()