2.8 Plotting

The Plotting docs.

Make Matplotlib look like R

Setting x-axis major and minor labels

Plotting multiple charts in an ipython notebook

Creating a multi-line plot

Plotting a heatmap

Annotate a time-series plot

Annotate a time-series plot #2

Generate Embedded plots in excel files using Pandas, Vincent and xlsxwriter

Boxplot for each quartile of a stratifying variable

In [1]: df = pd.DataFrame(
   ...:      {u'stratifying_var': np.random.uniform(0, 100, 20),
   ...:       u'price': np.random.normal(100, 5, 20)})
   ...: 

In [2]: df[u'quartiles'] = pd.qcut(
   ...:     df[u'stratifying_var'],
   ...:     4,
   ...:     labels=[u'0-25%', u'25-50%', u'50-75%', u'75-100%'])
   ...: 

In [3]: df.boxplot(column=u'price', by=u'quartiles')
Out[3]: <matplotlib.axes._subplots.AxesSubplot at 0x2b35acfdb4d0>
../_images/quartile_boxplot.png