Skip to content

Commit

Permalink
change voltage plotting method
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrevaya authored Dec 6, 2024
1 parent 56c8279 commit 10d1ca1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/tutorials/basal_ganglia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ prob = SDEProblem(sys, [], tspan, [])
sol = solve(prob, RKMil(), dt = dt, saveat = dt);

# Plot voltage of a single neuron
plot(sol, idxs=1, axis = (xlabel = "Time (ms)", ylabel = "Membrane potential (mV)"))
v = voltage_timeseries(msn, sol)
fig = Figure()
ax = Axis(fig[1,1]; xlabel = "Time (ms)", ylabel = "Voltage (mv)")
lines!(ax, sol.t, v[:, 1])
fig ## to display the figure

# Plot mean field
meanfield(msn, sol, title = "Mean Field Potential")
Expand Down

0 comments on commit 10d1ca1

Please sign in to comment.