Skip to content

Commit

Permalink
Use tight layout for embedding plot
Browse files Browse the repository at this point in the history
huddlej committed Mar 29, 2024
1 parent 03adbd1 commit 6f13d2f
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified images/example-tsne-embedding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pathogen_embed/pathogen_embed.py
Original file line number Diff line number Diff line change
@@ -344,6 +344,7 @@ def embed(args):
ax.scatter(plot_df["x"], plot_df["y"], alpha=0.5)
ax.set_xlabel("x")
ax.set_ylabel("y")
plt.tight_layout()
plt.savefig(args.output_figure)
plt.close()

0 comments on commit 6f13d2f

Please sign in to comment.