Code: Select all
objref syn1
access dend[49]
syn1 = new AlphaSynapse(.928571) // place a synapse
//syn1 = new AlphaSynapse(0.642857)
syn1.get_loc()
syn1.onset = 1 // ms
syn1.tau = 5 // ms
syn1.gmax = .001 // uS
syn1.e = 0 // mV
Code: Select all
objref syn1
access dend[49]
syn1 = new AlphaSynapse(.928571) // place a synapse
//syn1 = new AlphaSynapse(0.642857)
syn1.get_loc()
syn1.onset = 1 // ms
syn1.tau = 5 // ms
syn1.gmax = .001 // uS
syn1.e = 0 // mV
The Shape class's label() method can print strings on the graph canvas. The only problem is discovering the coordinates of where to place it on the canvas. A crude but effective way to do this isis there also a way to put a label by the dot that says the location such as "dend[49](0.64)