In [4]:
from matplotlib.pyplot import *
from numpy import *
x = linspace(0, 2 * pi)
plot(x, sin(x), label=r'$\sin(x)$')
plot(x, cos(x), 'ro', label=r'$\cos(x)$')
title(r'Two familiar functions')
legend()


Out[4]:
<matplotlib.legend.Legend at 0x10d353c10>

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: