% Example Title % Example Subtitle % Example Author

In [1]:
import seaborn as sns
import matplotlib.pyplot as plt

%matplotlib inline
%config InlineBackend.figure_format = 'svg'

Calculate the attention of subjects

Here we calculate the attention of subjects


In [2]:
attend = sns.load_dataset("attention").query("subject <= 12")
g = sns.FacetGrid(attend, col="subject", col_wrap=4, size=2, ylim=(0, 10))
g.map(sns.pointplot, "solutions", "score", color=".3", ci=None);


A slide with just text

  • First point
    • First subpoint
    • Second subpoint
  • Second point
  • Third point

A look at the tips dataset

This is a formula $x = \frac{1}{2} \cos(y)$


In [6]:
tips = sns.load_dataset("tips")
with sns.axes_style("white"):
    g = sns.FacetGrid(tips, row="sex", col="smoker", margin_titles=True, size=2.5)
g.map(plt.scatter, "total_bill", "tip", alpha=0.5);
g.set_axis_labels("Total bill (US Dollars)", "Tip");
g.set(xticks=[10, 30, 50], yticks=[2, 6, 10]);
g.fig.subplots_adjust(wspace=.02, hspace=.02);


Here we show some code


In [4]:
g = sns.FacetGrid(tips, col="day", size=4, aspect=.5)
g.map(sns.barplot, "sex", "total_bill");



In [ ]: