Specify which cells get plotted in a Shapeplot?

Using the graphical user interface to build and exercise models. Includes customizing the GUI by writing a little bit of hoc.
Post Reply
neuromau
Posts: 97
Joined: Mon Apr 20, 2009 7:02 pm

Specify which cells get plotted in a Shapeplot?

Post by neuromau » Fri Oct 01, 2010 9:12 pm

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!

ted
Site Admin
Posts: 5727
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Specify which cells get plotted in a Shapeplot?

Post by ted » Sat Oct 02, 2010 10:19 am

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.

hines
Site Admin
Posts: 1595
Joined: Wed May 18, 2005 3:32 pm

Re: Specify which cells get plotted in a Shapeplot?

Post by hines » Sat Oct 02, 2010 4:00 pm

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)

hines
Site Admin
Posts: 1595
Joined: Wed May 18, 2005 3:32 pm

Re: Specify which cells get plotted in a Shapeplot?

Post by hines » Sat Oct 02, 2010 4:02 pm

Forgot to mention that SectionList.wholecell appends to the SectionList so you can do several cells.

neuromau
Posts: 97
Joined: Mon Apr 20, 2009 7:02 pm

Re: Specify which cells get plotted in a Shapeplot?

Post by neuromau » Sat Oct 02, 2010 6:52 pm

Perfect, thanks!

Post Reply