In [3]:
%matplotlib inline

In [52]:
import matplotlib.pyplot as plt
import numpy as np

In [9]:
fig = plt.figure(figsize=(1,2))
ax = fig.add_subplot(111)
ax.plot([1,2,3,4], [1,2,3,4])


Out[9]:
[<matplotlib.lines.Line2D at 0x7fdc12af9668>]

In [14]:
600 * 600 * 1


Out[14]:
360000

In [12]:
1200*1200*4


Out[12]:
5760000

In [13]:
2400*2400*4


Out[13]:
23040000

In [15]:
complaints = [3750, 3450, 2975, 2750, 2760]
years = [2012, 2013, 2014, 2015, 2016]

In [16]:
print(plt.style.available)


['seaborn-dark-palette', 'seaborn-deep', 'seaborn-poster', 'seaborn-colorblind', 'seaborn-white', 'seaborn-talk', 'classic', 'fivethirtyeight', 'seaborn-paper', 'seaborn-muted', 'seaborn-notebook', 'seaborn-pastel', 'seaborn-ticks', 'dark_background', 'seaborn-bright', 'ggplot', '_classic_test', 'grayscale', 'seaborn', 'seaborn-darkgrid', 'seaborn-whitegrid', 'seaborn-dark', 'bmh']

In [56]:
def make_plot(style_name):
    with plt.style.context(style_name):
        fig = plt.figure(figsize = (8, 6), dpi = 300)
        ax = fig.add_subplot(111)
        ax.plot(years, complaints, '.-')
        fig.autofmt_xdate()

In [61]:
make_plot("default")



In [57]:
make_plot("fivethirtyeight")



In [58]:
make_plot("seaborn-talk")



In [47]:
make_plot("default")



In [60]:
make_plot("ggplot")



In [ ]: