def __init__(self, g_inh=0.003, info=None, position=None): self.coupling_strength = {} for k in coupling_dict.keys(): self.coupling_strength[k] = g_inh self.COUPLING_LOCKED = True self.info = info self.fig = pl.figure('Network', figsize=(6, 5), facecolor='#EEEEEE') self.ax = self.fig.add_axes([0., 0., 1., 1.], xticks=[], yticks=[], frameon=False) self.texts = nn.neuro_net_four(self.coupling_strength, self.ax) self.show_coupling() self.fig.canvas.mpl_connect('button_press_event', self.on_button) self.fig.canvas.mpl_connect('button_release_event', self.off_button) self.fig.canvas.mpl_connect('axes_enter_event', self.focus_in) if not position == None: try: self.fig.canvas.manager.window.wm_geometry(position) except: pass
def __init__(self, g_inh=0.003, info=None, position=None): win.window.__init__(self, position, info) self.coupling_strength = {} for k in coupling_dict.keys(): self.coupling_strength[k] = g_inh self.COUPLING_LOCKED = True self.info = info self.ax = self.fig.add_axes([0., 0., 1., 1.], xticks=[], yticks=[], frameon=False) self.texts = nn.neuro_net_four(self.coupling_strength, self.ax) self.key_func_dict.update({'0' : type(self).resetCoupling}) self.fig.canvas.mpl_connect('button_press_event', self.on_button) self.fig.canvas.mpl_connect('button_release_event', self.off_button)
def __init__(self, g_inh=0.003, info=None, position=None): win.window.__init__(self, position, info) self.coupling_strength = {} for k in coupling_dict.keys(): self.coupling_strength[k] = g_inh self.COUPLING_LOCKED = True self.info = info self.ax = self.fig.add_axes([0., 0., 1., 1.], xticks=[], yticks=[], frameon=False) self.texts = nn.neuro_net_four(self.coupling_strength, self.ax) self.key_func_dict.update({'0': type(self).resetCoupling}) self.fig.canvas.mpl_connect('button_press_event', self.on_button) self.fig.canvas.mpl_connect('button_release_event', self.off_button)