本文整理汇总了Python中noisefigs.env.NoiseEnvironment.plot方法的典型用法代码示例。如果您正苦于以下问题:Python NoiseEnvironment.plot方法的具体用法?Python NoiseEnvironment.plot怎么用?Python NoiseEnvironment.plot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类noisefigs.env.NoiseEnvironment
的用法示例。
在下文中一共展示了NoiseEnvironment.plot方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import plot [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()
示例2: NoiseEnvironment
# 需要导入模块: from noisefigs.env import NoiseEnvironment [as 别名]
# 或者: from noisefigs.env.NoiseEnvironment import plot [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('--pac_example')
parser.add_flag('--burak_conn_weights')
args = parser.parse_args()
env = NoiseEnvironment(user_config=config.get_config())
if args.pac_example or args.all:
env.register_plotter(noisefigs.plotters.PACExamplePlotter)
if args.burak_conn_weights or args.all:
env.register_plotter(noisefigs.plotters.Burak2009ConnectionPlotter)
env.plot()