Search found 8 matches

by Ziling Wang
Sun Jul 14, 2024 10:55 pm
Forum: NEURON + Python
Topic: change the onset time of voltage clamp
Replies: 3
Views: 1217

Re: change the onset time of voltage clamp

Yes, the computational model is at the resting state at time t = 0, and it also receives a synaptic input at t=0. Then, we attempt to insert a somatic

voltage clamp, for example at t=5ms.
by Ziling Wang
Fri Jul 12, 2024 1:44 am
Forum: NEURON + Python
Topic: change the onset time of voltage clamp
Replies: 3
Views: 1217

change the onset time of voltage clamp

I am simulating a neural dynamic when it receives a synaptic input at t=0. And I want to insert a voltage clamp into the soma with different onset times. How can I change the start time of a somatic voltage clamp when using SEClamp? # Initialize voltage clamp vclamp = h.SEClamp(L5PC.soma[0](0.5))
by Ziling Wang
Mon May 06, 2024 10:36 pm
Forum: Getting started
Topic: square in soma in plotshape
Replies: 1
Views: 7933

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: 6454

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: 6454

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: 6454

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: 6454

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: 6454

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...