In [5]:
# %load /Users/facaiyan/Study/book_notes/preconfig.py
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(color_codes=True)
sns.set(font='SimHei')
plt.rcParams['axes.grid'] = False
#from IPython.display import SVG
def show_image(filename, figsize=None, res_dir=True):
if figsize:
plt.figure(figsize=figsize)
if res_dir:
filename = './res/{}'.format(filename)
plt.imshow(plt.imread(filename))
In [10]:
show_image('fig1_5.png', figsize=[12, 10])
In [8]:
show_image('fig1_4.png', figsize=[10, 8])
History:
Trend:
In [11]:
show_image('fig1_11.png', figsize=[10, 8])
In [ ]: