Page 1 of 1

only plot dendrites in shape plot

Posted: Thu Oct 25, 2012 2:26 am
by tine
dear all,

I have a model which contains both axons and dendrites and a soma. For demonstration purposes I want to make a shapeplot of soma and dendrites only. Does any body has any suggestions how to do this?

thanks

Re: only plot dendrites in shape plot

Posted: Thu Oct 25, 2012 12:00 pm
by ted
Make a SectionList that contains only those sections that you want to show. Then make a Shape (shows all sections), and finally use the Shape's observe() method to show only those sections that are in your SectionList. As a final touch, you might want to use the Shape's exec_menu("View = plot").

Example:
start neurondemo
select the "Pyramidal" cell model
at the oc> prompt enter the following statements, one at a time, each followed by pressing the Enter key.

Code: Select all

objref some
some = new SectionList()
forsec "dendrite_1" some.append()
objref myshape
myshape = new Shape() // shows the entire cell
myshape.observe(some) // shows only the apical tree
myshape.exec_menu("View = plot")

Re: only plot dendrites in shape plot

Posted: Fri Oct 26, 2012 7:02 am
by tine
thanks