From b0e85466a4d774e57f1841c0b7df9f12fda31dfb Mon Sep 17 00:00:00 2001 From: "C.A.P. Linssen" Date: Tue, 16 Jul 2024 16:24:33 +0200 Subject: [PATCH] fix isi plotting script --- extras/benchmark/plot_isi_distributions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/benchmark/plot_isi_distributions.py b/extras/benchmark/plot_isi_distributions.py index b45b39fda..148670090 100644 --- a/extras/benchmark/plot_isi_distributions.py +++ b/extras/benchmark/plot_isi_distributions.py @@ -55,7 +55,7 @@ def plot_isi_distributions(neuron_models, data): plt.figure(figsize=(10, 6)) for neuron_model in neuron_models: - plt.bar(data["bin_centers"], data[neuron_model]["counts_std"], data["bin_centers"][1] - data["bin_centers"][0], bottom=data[neuron_model]["counts_mean"] - data[neuron_model]["counts_std"] / 2, alpha=.5) + plt.bar(data["bin_centers"], 2 * data[neuron_model]["counts_std"], data["bin_centers"][1] - data["bin_centers"][0], bottom=data[neuron_model]["counts_mean"] - data[neuron_model]["counts_std"], alpha=.5) plt.step(data["bin_edges"][:-1], data[neuron_model]["counts_mean"], label=neuron_model, linewidth=2, alpha=.5, where="post") #plt.errorbar(data["bin_centers"], data[neuron_model]["counts_mean"], yerr=data[neuron_model]["counts_std"], fmt='o', color='black', capsize=5)