Page 1 of 1

Specify which cells get plotted in a Shapeplot?

Posted: Fri Oct 01, 2010 9:12 pm
by neuromau
Hello,

I wrote some hoc code that defines 4 unique cells with positions such that they are arranged in a row when I create a Shapeplot. Now I am wondering if I can limit which cells are displayed in a Shapeplot, ideally making a separate Shapeplot for each cell? I'm fine with a solution using hoc, if that's available, just not sure where to post this question!

Thanks!

Re: Specify which cells get plotted in a Shapeplot?

Posted: Sat Oct 02, 2010 10:19 am
by ted
You could separate them so they don't appear to overlap, then specify viewport coordinates so that only one is shown, but I wonder if there is a better approach.

Re: Specify which cells get plotted in a Shapeplot?

Posted: Sat Oct 02, 2010 4:00 pm
by hines
http://www.neuron.yale.edu/neuron/stati ... shape.html
and http://www.neuron.yale.edu/neuron/stati ... shape.html
take a SectionList as an optional first arg which specified the sections to be drawn. Note that if your currently accessed section
is a section in the cell you want to see then
seclist.whole(cell)
will be all the sections in the cell (more precisely the whole tree that contains the currently accessed section)

Re: Specify which cells get plotted in a Shapeplot?

Posted: Sat Oct 02, 2010 4:02 pm
by hines
Forgot to mention that SectionList.wholecell appends to the SectionList so you can do several cells.

Re: Specify which cells get plotted in a Shapeplot?

Posted: Sat Oct 02, 2010 6:52 pm
by neuromau
Perfect, thanks!