In [1]:
import altair.api as spec
from altair.mpl import render

import pandas
import seaborn.apionly as sns

%matplotlib notebook


/home/tcaswell/.virtualenvs/dd_py3k/lib/python3.4/site-packages/matplotlib/__init__.py:872: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))

In [2]:
iris = sns.load_dataset('iris')

In [3]:
v = spec.Viz(iris).encode(x='sepal_length',y='petal_width', col=spec.Index(name='petal_length', bin=3), row='species').mark_point()


/home/tcaswell/.virtualenvs/dd_py3k/lib/python3.4/site-packages/pandas/core/internals.py:956: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  return self._try_coerce_result(func(values, other))

In [4]:
render(v)


Out[4]:
({('setosa',
   1.9833333333333334): [<matplotlib.lines.Line2D at 0x7fbed930b940>],
  ('versicolor',
   3.9500000000000002): [<matplotlib.lines.Line2D at 0x7fbed930bc50>],
  ('versicolor',
   5.916666666666667): [<matplotlib.lines.Line2D at 0x7fbed9293860>],
  ('virginica',
   3.9500000000000002): [<matplotlib.lines.Line2D at 0x7fbed92ae080>],
  ('virginica',
   5.916666666666667): [<matplotlib.lines.Line2D at 0x7fbed92ae978>]},
 {('setosa',
   1.9833333333333334): <matplotlib.axes._subplots.AxesSubplot at 0x7fbedb5cb1d0>,
  ('setosa',
   3.9500000000000002): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed95322e8>,
  ('setosa',
   5.916666666666667): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed95012b0>,
  ('versicolor',
   1.9833333333333334): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed94b5f98>,
  ('versicolor',
   3.9500000000000002): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed9480f60>,
  ('versicolor',
   5.916666666666667): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed943f940>,
  ('virginica',
   1.9833333333333334): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed940f2e8>,
  ('virginica',
   3.9500000000000002): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed93c7710>,
  ('virginica',
   5.916666666666667): <matplotlib.axes._subplots.AxesSubplot at 0x7fbed93926d8>})

In [ ]:
ln.set_markerfacecolor('w')

In [ ]:
%debug

In [ ]: