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

In [2]:
%matplotlib inline

In [3]:
sns.set_style('whitegrid')
sns.set_context('paper', font_scale=2.)

In [4]:
x = np.arange(0, 1, 0.1)
fig, ax = plt.subplots()
ax.plot(x, x, lw=2, color='k')
ax.set_xlabel('x')
ax.set_ylabel('y')
fig.set_tight_layout(tight=True)
fig.savefig('../doc/figs/test_fig.png')
fig_detail = b'- test_fig: Simple straight line drawn with numpy and matplotlib'
with open('../doc/figs/README.md', "ab+") as fh:  
    fh.write(fig_detail)