本文整理汇总了Python中noisefigs.env.NoiseEnvironment.register_plotter方法的典型用法代码示例。如果您正苦于以下问题:Python NoiseEnvironment.register_plotter方法的具体用法?Python NoiseEnvironment.register_plotter怎么用?Python NoiseEnvironment.register_plotter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类noisefigs.env.NoiseEnvironment
的用法示例。
在下文中一共展示了NoiseEnvironment.register_plotter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
singleDataRoot = 'simulation_data/submission/single_neuron'
parser = flagparse.FlagParser()
parser.add_flag('--grids')
parser.add_flag('--Vm_examples')
parser.add_flag('--diff_sweep')
parser.add_flag('--conn_func')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.grids or args.all:
env.register_plotter(noisefigs.plotters.GridSweepsPlotter)
if args.Vm_examples or args.all:
env.register_plotter(noisefigs.plotters.VmExamplesPlotter)
if args.conn_func or args.all:
env.register_plotter(noisefigs.plotters.ConnectionFunctionPlotter)
env.plot()
示例2: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--rasters')
parser.add_flag('--rastersZoom')
parser.add_flag('--rates')
parser.add_flag('--vel_slope_sweeps')
parser.add_flag('--vel_fiterr_prob')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.rasters or args.all:
env.register_plotter(noisefigs.plotters.VelocityRasterPlotter)
if args.rates or args.all:
env.register_plotter(noisefigs.plotters.VelocityRatePlotter)
if args.rastersZoom or args.all:
env.register_plotter(noisefigs.plotters.VelocityRasterZoomPlotter)
if args.vel_slope_sweeps or args.all:
env.register_plotter(noisefigs.plotters.VelSlopeSweepPlotter)
if args.vel_fiterr_prob or args.all:
env.register_plotter(noisefigs.plotters.GridsVelFitErrProbabilityPlotter)
env.plot()
示例3: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
from noisefigs.env import NoiseEnvironment
import config_e_const_450 as config
parser = flagparse.FlagParser()
parser.add_flag('--theta_signal')
parser.add_flag('--rastersFlag')
parser.add_flag('--rates')
parser.add_flag('--maxFRSweeps')
parser.add_flag('--seizureProportion')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.theta_signal or args.all:
env.register_plotter(noisefigs.plotters.ThetaSignalPlotter)
if args.rastersFlag or args.all:
env.register_plotter(noisefigs.plotters.EIRasterPlotter)
if args.rates or args.all:
env.register_plotter(noisefigs.plotters.EIRatePlotter)
if args.maxFRSweeps or args.all:
env.register_plotter(noisefigs.plotters.MaxPopulationFRSweepsPlotter)
if args.seizureProportion or args.all:
env.register_plotter(noisefigs.plotters.PSeizureSweepPlotter)
env.plot()
示例4: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
'''I-surround bump drift plots with the original E-surround settings but with
an increased constant drive to E cells.'''
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config_e_const_450 as config
parser = flagparse.FlagParser()
parser.add_flag('--drift_sweep')
parser.add_flag('--theta_signal')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.drift_sweep or args.all:
env.register_plotter(noisefigs.plotters.BumpDriftAtTimePlotter)
if args.theta_signal or args.all:
env.register_plotter(noisefigs.plotters.ThetaSignalPlotter)
env.plot()
示例5: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
import copy
import matplotlib
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--gammaSweep')
parser.add_flag('--examples')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.gammaSweep or args.all:
env.register_plotter(noisefigs.plotters.GammaSweepsPlotter)
if args.examples or args.all:
env.register_plotter(noisefigs.plotters.GammaExamplePlotter)
env.plot()
示例6: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--rasters')
parser.add_flag('--rates')
parser.add_flag('--seizureProportion')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.rasters or args.all:
env.register_plotter(noisefigs.plotters.EIRasterPlotter)
if args.rates or args.all:
env.register_plotter(noisefigs.plotters.EIRatePlotter)
if args.seizureProportion or args.all:
env.register_plotter(noisefigs.plotters.PSeizureSweepPlotter)
env.plot()
示例7: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
import config_original as config
parser = flagparse.FlagParser()
parser.add_flag('--pbumps_sweep')
parser.add_flag('--pbumps_threshold_sweep')
parser.add_flag('--bump_examples')
parser.add_flag('--bump_examples_isbump')
parser.add_flag('--bump_examples_colorbar')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.pbumps_sweep or args.all:
env.register_plotter(noisefigs.plotters.MainBumpFormationPlotter)
if args.pbumps_threshold_sweep or args.all:
env.register_plotter(noisefigs.plotters.MainIsBumpPlotter)
if args.bump_examples or args.all:
env.register_plotter(noisefigs.plotters.BumpExamplePlotter)
if args.bump_examples_isbump or args.all:
env.register_plotter(noisefigs.plotters.IsBumpExamplePlotter)
if args.bump_examples_colorbar or args.all:
env.register_plotter(noisefigs.plotters.BumpExampleColorbarPlotter)
env.plot()
示例8: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
# va='bottom', ha='left')
gs.update(left=gsl, bottom=gsb, right=gsr, top=gst, hspace=.2)
ax_theta = fig.add_axes(Bbox.from_extents(gsl, gst - .015,
gsr, gst + .01))
t = np.arange(tLimits[0], tLimits[1]+self.dt, self.dt)
theta = self.const + .5 * (1. +
np.cos(2*np.pi*self.freq*1e-3*t - np.pi)) * (1 - self.const)
ax_theta.fill_between(t, theta, edgecolor='None',
color=self.myc['theta_color'])
ax_theta.set_xlim([tLimits[0], tLimits[1]])
ax_theta.set_ylim(-.02, 1.02)
ax_theta.axis('off')
plt.savefig(self.get_fname('pastoll_et_al_rasters.pdf'), dpi=300,
transparent=True)
plt.close(fig)
parser = flagparse.FlagParser()
parser.add_flag('--raster_examples')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.raster_examples or args.all:
env.register_plotter(RasterExamples)
env.plot()
示例9: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
import noisefigs
from noisefigs.env import NoiseEnvironment
singleDataRoot = 'simulation_data/submission/single_neuron'
parser = flagparse.FlagParser()
parser.add_flag('--maxThetaFRSweeps')
parser.add_flag('--maxThetaFRSweeps_median')
parser.add_flag('--maxThetaFRSweeps_std')
parser.add_flag('--maxThetaFRHist')
parser.add_flag('--seizureProportion')
args = parser.parse_args()
#ps = ds.getDefaultParamSpaces()
env = NoiseEnvironment()
if args.maxThetaFRSweeps or args.all:
env.register_plotter(noisefigs.plotters.MaxMeanThetaFRSweepPlotter)
if args.maxThetaFRSweeps_std or args.all:
env.register_plotter(noisefigs.plotters.MaxStdThetaFRSweepPlotter)
if args.maxThetaFRSweeps_median or args.all:
env.register_plotter(noisefigs.plotters.MaxMedianThetaFRSweepPlotter)
if args.maxThetaFRHist or args.all:
env.register_plotter(noisefigs.plotters.MaxThetaFRHistPlotter)
env.plot()
示例10: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
import nmda_0p1_config
parser = flagparse.FlagParser()
parser.add_flag('--bumpExamples')
parser.add_flag('--fracTotalSweepAnn')
parser.add_flag('--isBump')
parser.add_argument('--expScatter', action="store_true")
args = parser.parse_args()
env_0mM = NoiseEnvironment(user_config=config.get_config())
env_0p1mM = NoiseEnvironment(user_config=nmda_0p1_config.get_config())
if args.fracTotalSweepAnn or args.all:
env_0mM.register_plotter(noisefigs.plotters.MainBumpFormationPlotter)
env_0p1mM.register_plotter(noisefigs.plotters.MainBumpFormationPlotter)
if args.isBump or args.all:
env_0mM.register_plotter(noisefigs.plotters.MainIsBumpPlotter)
if args.bumpExamples or args.all:
env_0mM.register_plotter(noisefigs.plotters.BumpExamplePlotter)
env_0mM.plot()
env_0p1mM.plot()
示例11: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
import noisefigs
from noisefigs.env import NoiseEnvironment
import config_original as config
parser = flagparse.FlagParser()
parser.add_flag('--grids')
parser.add_flag('--examplesFlag')
parser.add_flag('--examples_colorbar')
parser.add_flag('--diff_sweep')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.grids or args.all:
env.register_plotter(noisefigs.plotters.GridSweepsPlotter)
if args.examplesFlag or args.all:
env.register_plotter(noisefigs.plotters.GridExamplesPlotter)
env.register_plotter(noisefigs.plotters.GridExamplesPlotter,
config={
'GridExamplesPlotter': {
'population_type': 'I'
},
})
if args.examples_colorbar or args.all:
env.register_plotter(noisefigs.plotters.GridExampleColorbarPlotter)
if args.diff_sweep or args.all:
env.register_plotter(noisefigs.plotters.GridsDiffSweep)
示例12: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
parser = flagparse.FlagParser()
parser.add_flag('--grids')
parser.add_flag('--examplesFlag')
parser.add_flag('--examples_colorbar')
parser.add_flag('--detailed_noise')
parser.add_flag('--diff_sweep')
parser.add_flag('--conn_func')
parser.add_flag('--example_hists')
parser.add_flag('--grids_pbumps_prob')
parser.add_flag('--high_gscore_frac')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.grids or args.all:
env.register_plotter(noisefigs.plotters.GridSweepsPlotter)
if args.examplesFlag or args.all:
env.register_plotter(noisefigs.plotters.GridExamplesPlotter)
if args.examples_colorbar or args.all:
env.register_plotter(noisefigs.plotters.GridExampleColorbarPlotter)
if args.detailed_noise or args.all:
env.register_plotter(noisefigs.plotters.GridDetailedNoisePlotter)
if args.diff_sweep or args.all:
env.register_plotter(noisefigs.plotters.GridsDiffSweep)
#if args.conn_func or args.all:
# env.register_plotter(noisefigs.plotters.ConnectionFunctionPlotter)
示例13: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--bumpDriftSweep')
parser.add_flag('--bumpDiffAtInitSweep')
#parser.add_flag('--bumpDiffResetSweep')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.bumpDriftSweep or args.all:
env.register_plotter(noisefigs.plotters.BumpDriftAtTimePlotter)
if args.bumpDiffAtInitSweep or args.all:
env.register_plotter(noisefigs.plotters.BumpDiffAtInitPlotter)
#if args.bumpDiffResetSweep or args.all:
# env.register_plotter(noisefigs.plotters.BumpDiffResetPlotter)
env.plot()
示例14: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
parser = flagparse.FlagParser()
parser.add_flag('--isBump')
parser.add_flag('--fracTotalHist')
parser.add_flag('--fracTotalSweepAnn')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.fracTotalSweepAnn or args.all:
env.register_plotter(noisefigs.plotters.FracTotalSweepAnnPlotter)
if args.isBump or args.all:
env.register_plotter(noisefigs.plotters.IsBumpPlotter)
if args.fracTotalHist or args.all:
env.register_plotter(noisefigs.plotters.FracTotalHistPlotter)
env.plot()
示例15: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import register_plotter [as 别名]
#!/usr/bin/env python
from __future__ import absolute_import, print_function
from grid_cell_model.submitting import flagparse
import noisefigs
from noisefigs.env import NoiseEnvironment
import config
singleDataRoot = 'simulation_data/single_neuron'
parser = flagparse.FlagParser()
parser.add_flag('--scatter_plot')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.scatter_plot or args.all:
env.register_plotter(noisefigs.plotters.GridBumpScatterPlotter)
env.plot()