%matplotlib notebook

import pandas as pd
import numpy as np
import matplotlib

from matplotlib import pyplot as plt
import seaborn as sns

ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()

df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index,
                  columns=['A', 'B', 'C', 'D'])
df = df.cumsum()
df.plot(); plt.legend(loc='best')
<matplotlib.legend.Legend at 0x7f68b4397518>

using Gadfly D

plot(x=rand(10), y=rand(10), Geom.point, Geom.line)

plot(x=rand(10), y=rand(10), Geom.point, Geom.line)
  File "<ipython-input-6-f98f2a99334c>", line 1
    plot(x=rand(10), y=rand(10), Geom.point, Geom.line)
                                ^
SyntaxError: non-keyword arg after keyword arg
#