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]:
In [14]:
600 * 600 * 1
Out[14]:
In [12]:
1200*1200*4
Out[12]:
In [13]:
2400*2400*4
Out[13]:
In [15]:
complaints = [3750, 3450, 2975, 2750, 2760]
years = [2012, 2013, 2014, 2015, 2016]
In [16]:
print(plt.style.available)
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 [ ]: