2024-01-11 · Re-make network hops barplots

2024-01-11 · Re-make network hops barplots

include("lib\\util.jl");
using StatsBase … ✔
#new_nb("2024-01-11__Re-make_network_hops_barplots")

Data from https://tfiers.github.io/phd/nb/2022-07-14__Unconnected-but-detected.html#paths


include("lib\\plot.jl")
import PythonCall … ✔ (2.3 s)
import PythonPlot … ✔ (6.0 s)
using Sciplotlib … 
[ Info: Precompiling Sciplotlib [88be95e5-9550-4d5f-a203-92a5acbc3118]
✔ (4.3 s)
using PhDPlots … 
[ Info: Precompiling PhDPlots [8882fb83-7a18-4ae0-b3ef-a58e1f4042a1]
✔ (2.5 s)
hops = [1, 2, 3]
nr_neurons = [39594, 759845, 199561];
fig, ax = plt.subplots(figsize=(0.9mw,0.6mw))
ax.bar(hops, nr_neurons, width=0.6)
set(ax, xlabel = "Shortest path length", ylabel = "Nr of neuron pairs", xminorticks = false, xlim = [0.5, 3.5])
ax.set_xticks(hops);  # `set` sets its own xticks
savefig_phd("shortest-path-all")
Saved at `../thesis/figs/shortest-path-all.pdf`
../_images/2024-01-11__Re-make_network_hops_barplots_7_1.png
nr_neurons = [36, 733, 230];
fig, ax = plt.subplots(figsize=(0.9mw,0.6mw))
ax.bar(hops, nr_neurons, width=0.6)
set(ax, xlabel = "Hops to neuron `1`", ylabel = "Nr of starting neurons", xminorticks = false, xlim = [0.5, 3.5])
ax.set_xticks(hops);  # `set` sets its own xticks
savefig_phd("shortest-path-1")
Saved at `../thesis/figs/shortest-path-1.pdf`
../_images/2024-01-11__Re-make_network_hops_barplots_9_1.png