In [8]:
import pandas as pd
import scipy as sp
from scipy import stats
import pymc
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format = 'svg'
exec(open('../settings.py').read(), globals())
In [2]:
switchpoint = -200
space = sp.arange(-500, 500, 1)
l = 12.0
SOX2 = 35 * sp.ones(len(space)) / l
SOX2[ space > switchpoint ] = 30 / l
#SOX2const = 32 * sp.ones(len(space))
GF = 0.8 * sp.ones(len(space))
GF[ space > switchpoint ] = 0.95
#GFconst = 0.85 * sp.ones(len(space))
mi = 0.03 * sp.ones(len(space))
mi[ space > switchpoint ] = 0.06
#miconst = 0.05 * sp.ones(len(space))
Standard style figure
In [3]:
fig, ax = plt.subplots(2, figsize = (3.0, 1.5), sharex=True)
for a in ax:
a.spines['right'].set_color('none')
a.spines['top'].set_color('none')
a.yaxis.set_ticks_position('left')
a.xaxis.set_ticks_position('bottom')
a.set_xticks([])
a.set_yticks([])
ax[0].set_ylim([0.75, 1.0])
ax[0].set_ylabel('growth\nfraction')
ax[0].plot(space, GF, 'k')
ax[1].set_ylim([0.02, 0.07])
ax[1].set_xlabel('AP position')
ax[1].set_ylabel('mitotic\nindex')
ax[1].plot(space, mi, 'k')
plt.show()
xkcd style
In [4]:
plt.xkcd()
mpl.rcParams['axes.labelsize'] = 8
mpl.rcParams['xtick.labelsize'] = 8
mpl.rcParams['ytick.labelsize'] = 8
mpl.rcParams['legend.fontsize'] = 8
mpl.rcParams['text.usetex'] = False
mpl.rcParams['svg.fonttype'] = 'none'
In [5]:
fig, ax = plt.subplots(2, figsize = (3.0, 1.5), sharex=True)
for a in ax:
a.spines['right'].set_color('none')
a.spines['top'].set_color('none')
a.yaxis.set_ticks_position('left')
a.xaxis.set_ticks_position('bottom')
a.set_xticks([])
a.set_yticks([])
ax[0].set_ylim([0.75, 1.0])
ax[0].set_ylabel('growth\nfraction')
ax[0].plot(space, GF, 'k')
ax[1].set_ylim([0.02, 0.07])
ax[1].set_xlabel('AP position')
ax[1].set_ylabel('mitotic\nindex')
ax[1].plot(space, mi, 'k')
plt.show()
xkcd style with Helvetica
In [6]:
plt.xkcd()
mpl.rcParams['axes.labelsize'] = 8
mpl.rcParams['xtick.labelsize'] = 8
mpl.rcParams['ytick.labelsize'] = 8
mpl.rcParams['legend.fontsize'] = 8
mpl.rcParams['text.usetex'] = False
mpl.rcParams['svg.fonttype'] = 'none'
mpl.rcParams['font.family'] = ['Helvetica LT Std']
mpl.rcParams['font.sans-serif'] = ['Helvetica LT Std']
mpl.rcParams['path.effects'] = None
In [8]:
fig, ax = plt.subplots(2, figsize = (2.0, 1.5), sharex=True)
for a in ax:
a.spines['right'].set_color('none')
a.spines['top'].set_color('none')
a.yaxis.set_ticks_position('left')
a.xaxis.set_ticks_position('bottom')
a.set_xticks([])
a.set_yticks([])
ax[0].set_ylim([0.75, 1.0])
ax[0].set_ylabel('growth\nfraction')
ax[0].plot(space, GF, 'k')
ax[1].set_ylim([0.02, 0.07])
ax[1].set_xlabel('AP position')
ax[1].set_ylabel('mitotic\nindex')
ax[1].plot(space, mi, 'k')
plt.savefig('../../figure_plots/Fig2_spatial_model_sketch.svg')
plt.show()
In [ ]: