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}")