Skip to content

Commit

Permalink
Update default config + image format for script plotting 2D embedding…
Browse files Browse the repository at this point in the history
…s of representations
  • Loading branch information
nathanpainchaud committed Oct 19, 2023
1 parent 39fa094 commit 9c7c3fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion didactic/scripts/cardiac_multimodal_representation_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def main():
type=ClinicalAttribute,
nargs="+",
choices=list(ClinicalAttribute),
default=list(ClinicalAttribute),
help="Patients' clinical attributes w.r.t. which to plot the embedding",
)
parser.add_argument(
Expand Down Expand Up @@ -197,7 +198,7 @@ def main():
**embedding_kwargs,
):
# Save the plots locally
plt.savefig(output_dir / f"{attr}.png")
plt.savefig(output_dir / f"{attr}.svg")
plt.close() # Close the figure to avoid contamination between plots


Expand Down

0 comments on commit 9c7c3fb

Please sign in to comment.