From 48830dad700ff5bac8293b1619047aaf466c48ec Mon Sep 17 00:00:00 2001 From: Johannes Hjorth Date: Fri, 29 Nov 2024 11:55:03 +0100 Subject: [PATCH] Tight layout --- snudda/plotting/plot_spike_raster_v2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snudda/plotting/plot_spike_raster_v2.py b/snudda/plotting/plot_spike_raster_v2.py index f1169aac3..9a7ca6b58 100644 --- a/snudda/plotting/plot_spike_raster_v2.py +++ b/snudda/plotting/plot_spike_raster_v2.py @@ -353,6 +353,8 @@ def plot_spike_histogram_type(self, neuron_type, time_range=None, bin_size=50e-3 plt.ylabel("Frequency (Hz)", fontsize=20) ax.legend(loc=legend_loc, bbox_to_anchor=bbox_anchor) + plt.tight_layout() + if fig_file: fig_path = os.path.join(self.figure_path, fig_file) print(f"Writing figure {fig_path}")