Search found 6 matches

by Ziling Wang
Mon May 06, 2024 10:36 pm
Forum: Getting started
Topic: square in soma in plotshape
Replies: 0
Views: 30

square in soma in plotshape

When I draw the shape of a neuron, there is always a square at the location of the neuron cell body. However, changing the diameter of the soma does not change the size of the square. How can I remove this square as it affects the representation? The following are the code and a corresponding figure...
by Ziling Wang
Sun May 05, 2024 8:59 am
Forum: Other questions
Topic: Show Diameter
Replies: 8
Views: 587

Re: Show Diameter

Sorry, I have another question. When I draw the shape of a neuron, there is always a square at the location of the neuron cell body. However, changing the diameter of the soma does not change the size of the square. How can I remove this square as it affects the representation? The following are the...
by Ziling Wang
Sat Apr 06, 2024 8:13 am
Forum: Other questions
Topic: Show Diameter
Replies: 8
Views: 587

Re: Show Diameter

It worked, thank you very much!
by Ziling Wang
Wed Apr 03, 2024 10:03 am
Forum: Other questions
Topic: Show Diameter
Replies: 8
Views: 587

Re: Show Diameter

I tested the following code, but it didn't show diameter of the soma. And I would also like to ask how to adjust a better view in Shapeplot so that the neuron is right in the middle. # set morphology soma = h.Section(name='soma') soma.nseg = 1 soma.diam = 100 soma.L = 10. from neuron import h from m...
by Ziling Wang
Wed Apr 03, 2024 4:14 am
Forum: Other questions
Topic: Show Diameter
Replies: 8
Views: 587

Re: Show Diameter

Sorry, I set up ps.show(0), it still doesn't show diameter, even for soma. Following are the code and corresponding figure. code: v_vals = [seg.v for sec in h.allsec() for seg in sec] print(min(v_vals),max(v_vals)) if setv: minv= vmin maxv = vmax else: minv= min(v_vals) maxv= max(v_vals) ps = h.Plot...
by Ziling Wang
Wed Mar 27, 2024 9:23 am
Forum: Other questions
Topic: Show Diameter
Replies: 8
Views: 587

Show Diameter

The code below is plotting the membrane potential of the entire neuron via PlotShape, but I want to show the diameter of the neuron. When I set ps.show(1) as suggested by the document, it doesn't successfully show the diameter of the neuron. Is there any solution to make plotshape in neuron python d...