Location: Imtiaz_IP3_2002 @ d42ef5a082ba / Simulation / Fig2_plot.py

Author:
Leyla <noroozbabaee@gmail.com>
Date:
2021-10-11 15:58:15+13:00
Desc:
The final version of Imtiaz model ready for curation.
Permanent Source URI:
https://models.fieldml.org/workspace/763/rawfile/d42ef5a082ba250a7078b4a897abdf19ce5ff033/Simulation/Fig2_plot.py

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
prefilename = 'Fig1_A'
filename = '%s.csv' % prefilename 
data = pd.read_csv(filename)

time = data['time']
vm = data['Vm']
ca_y = data['y']
p_ip3 = data['ip3']
ca_z = data[ 'z' ]


fig = plt.figure(figsize=(8, 4),  edgecolor='k')
ax = fig.add_subplot()
fig.subplots_adjust(top=0.85)

ax.set_title('Pulse evoked/abolished slow wave train in the bistable region')
ax.plot(time, vm, 'k')
ax.set_ylabel('Membrane Voltage [mV]', fontsize=12)
ax.set_xlabel('Time [min]', fontsize=12)

ax.text(0.52, 0.9, ' $R$',
        verticalalignment='bottom', horizontalalignment='right',
        transform=ax.transAxes,
        color='k', fontsize=12)

ax.text(0.3, 0.1, '$SS$',
        verticalalignment='bottom', horizontalalignment='right',
        transform=ax.transAxes,
        color='k', fontsize=12)
plt.show()
plt.savefig('Figure_2')