Selecting segments with custom code
Posted: Tue Jan 23, 2018 10:16 pm
Hi,
I have the following code that graphs a specific, hardcoded segment in Neuron:
I would like to be able to choose the segment to graph from a visual representation of the neuron (like the one found under Tools -> Point Processes -> Electrode) instead of hardcoding the segment, so that I can dynamically change the segment being graphed at runtime.
Is there an object/variable that I can use to access the current segment selected from the Electrode window?
Thanks
I have the following code that graphs a specific, hardcoded segment in Neuron:
Code: Select all
b = new VBox()
b.intercept(1)
g = new Graph()
g.size(0,tstop,-70,70)
g.family(1)
g.addvar("apical[80].v(rel)",2,2,2*tstop,0,2) /////graphs apical[80] each time
g.xaxis(1)
xpanel(" ",1)
xbutton("current ", "runc()")
xbutton("AMPA", "runa()")
xbutton("AMPA+NMDA", "runm()")
Is there an object/variable that I can use to access the current segment selected from the Electrode window?
Thanks