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 or Python
Post Reply
neuromau
Posts: 97
Joined: Mon Apr 20, 2009 7:02 pm

Specify which cells get plotted in a Shapeplot?

Post 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!
ted
Site Admin
Posts: 6289
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 »

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: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Specify which cells get plotted in a Shapeplot?

Post 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)
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Specify which cells get plotted in a Shapeplot?

Post by hines »

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 »

Perfect, thanks!
Post Reply