Skip to content

Commit

Permalink
Tight layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Nov 29, 2024
1 parent f4bebcf commit 48830da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snudda/plotting/plot_spike_raster_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 48830da

Please sign in to comment.