示例#1
0
+30 deep LTS

"""
import os
import sys
import numpy as np
from matplotlib import pyplot as plt
from util import makepath
from config import cellcolor, mdict
from plotutil import plot_spike_raster
from traubdata import TraubData, cellcount_tuple

# datafile_figure_1b = 'data_20120922_195344_13808.h5' # This is a simulation with 30 deep basket, fixed snaptic conductance

datafile_figure_2b = 'data_20140724_125424_236053_compute-0-2.local.h5'  # normally distributed synaptic conductance

from matplotlib import rc
rc('font', size=12)
rc('figure', figsize=(3, 4))

if __name__ == '__main__':
    figfilename = 'figures/Figure_2B_spike_raster.png'
    fig, ax = plot_spike_raster(makepath(datafile_figure_2b), (5, 8))
    fig.tight_layout()
    fig.savefig(figfilename, transparent=True)
    print 'Saved figure in %s' % (figfilename)
    plt.show()

#
# figure_1_b.py ends here
"""
import os
import sys
import numpy as np
from matplotlib import pyplot as plt
from util import makepath
from config import cellcolor, mdict
from plotutil import plot_spike_raster
from traubdata import TraubData, cellcount_tuple

# datafile_figure_1b = 'data_20120922_195344_13808.h5' # This is a simulation with 30 deep basket, fixed snaptic conductance

datafile_figure_2b = 'data_20140724_125424_236053_compute-0-2.local.h5' # normally distributed synaptic conductance

from matplotlib import rc
rc('font', size=12)
rc('figure', figsize=(3, 4))


if __name__ == '__main__':
    figfilename='figures/Figure_2B_spike_raster.png'
    fig, ax = plot_spike_raster(makepath(datafile_figure_2b), (5, 8))
    fig.tight_layout()
    fig.savefig(figfilename, transparent=True)
    print 'Saved figure in %s' % (figfilename)
    plt.show()

# 
# figure_1_b.py ends here
示例#3
0
# Floor, Boston, MA 02110-1301, USA.
#
#

# Code:

from collections import defaultdict
import numpy as np
import pylab as plt
from util import makepath
from traubdata import TraubData
from trbhist import get_spiketime_hist
from util import makepath, smooth_gaussian
from config import cellcolor
from plotutil import plot_spike_raster

plt.rc('font', size=12)
plt.rc('figure', figsize=(3, 4))

data_filename = 'data_20140724_125424_3938_compute-0-1.local.h5'

if __name__ == '__main__':
    figfilename = 'figures/Figure_5A_spikeraster_30DB.png'
    trange = (5, 8)
    fig, ax = plot_spike_raster(makepath(data_filename), trange)
    plt.savefig(figfilename, transparent=True)
    plt.show()

#
# fig_5_b_spikeraster_30DB.py ends here
"""Plots spike rasters for populations when simulated without synaptic
connections.

"""

from collections import defaultdict
import numpy as np
import pylab as plt
from util import makepath
from traubdata import TraubData
from trbhist import get_spiketime_hist
from util import makepath, smooth_gaussian
from config import cellcolor
from plotutil import plot_spike_raster

plt.rc('font', size=12)
plt.rc('figure', figsize=(3, 4))

unconnected_filename = 'data_20140423_101740_1735.h5'

if __name__ == '__main__':
    figfilename = 'figures/Figure_3C_spike_raster_disconnected.png'
    trange = (5, 6)
    fig, ax = plot_spike_raster(makepath(unconnected_filename), trange)
    plt.savefig(figfilename, transparent=True)
    plt.show()
    

# 
# figure_2_c_nosynapse_spikeraster.py ends here
# 

# Code:

from collections import defaultdict
import numpy as np
import pylab as plt
from util import makepath
from traubdata import TraubData
from trbhist import get_spiketime_hist
from util import makepath, smooth_gaussian
from config import cellcolor
from plotutil import plot_spike_raster

plt.rc('font', size=12)
plt.rc('figure', figsize=(3, 4))

data_filename = 'data_20140526_110240_20695.h5'  #'data_20140525_130513_20265.h5'  #'data_20140825_113047_105368_compute-0-2.local.h5'

if __name__ == '__main__':
    figfilename = 'figures/Figure_5B_spikeraster_80DB.png'
    trange = (5, 8)
    fig, ax = plot_spike_raster(makepath(data_filename), trange)
    plt.savefig(figfilename, transparent=True)
    plt.show()



# 
# fig_5_b_spikeraster_30DB.py ends here
# 

# Code:

import os
import sys
import numpy as np
from matplotlib import pyplot as plt
from util import makepath
from config import cellcolor, mdict
from plotutil import plot_spike_raster
from traubdata import TraubData, cellcount_tuple
from matplotlib import rc
rc('font', size=12)
rc('figure', figsize=(3, 4))

if __name__ == '__main__':
    datafile = 'data_20141026_001859_109751_compute-0-15.local.h5' # 1.2x

    figfilename='figures/Figure_4B_spike_raster_high_GABA.png'
    fig, ax = plot_spike_raster(makepath(datafile), (5, 8))
    # fig.tight_layout()
    fig.savefig(figfilename, transparent=True)
    print 'Saved figure in %s' % (figfilename)
    plt.show()



# 
# fig_4_b_high_gaba_spike_raster.py ends here
示例#7
0
#
#

# Code:

import os
import sys
import numpy as np
from matplotlib import pyplot as plt
from util import makepath
from config import cellcolor, mdict
from plotutil import plot_spike_raster
from traubdata import TraubData, cellcount_tuple
from matplotlib import rc

rc('font', size=12)
rc('figure', figsize=(3, 4))

if __name__ == '__main__':
    datafile = 'data_20141026_001859_109751_compute-0-15.local.h5'  # 1.2x

    figfilename = 'figures/Figure_4B_spike_raster_high_GABA.png'
    fig, ax = plot_spike_raster(makepath(datafile), (5, 8))
    # fig.tight_layout()
    fig.savefig(figfilename, transparent=True)
    print 'Saved figure in %s' % (figfilename)
    plt.show()

#
# fig_4_b_high_gaba_spike_raster.py ends here
# Code:
"""Plots spike rasters for populations when simulated without synaptic
connections.

"""

from collections import defaultdict
import numpy as np
import pylab as plt
from util import makepath
from traubdata import TraubData
from trbhist import get_spiketime_hist
from util import makepath, smooth_gaussian
from config import cellcolor
from plotutil import plot_spike_raster

plt.rc('font', size=12)
plt.rc('figure', figsize=(3, 4))

unconnected_filename = 'data_20140423_101740_1735.h5'

if __name__ == '__main__':
    figfilename = 'figures/Figure_3C_spike_raster_disconnected.png'
    trange = (5, 6)
    fig, ax = plot_spike_raster(makepath(unconnected_filename), trange)
    plt.savefig(figfilename, transparent=True)
    plt.show()

#
# figure_2_c_nosynapse_spikeraster.py ends here