From 9c7c3fbb07d3450346bfa08d84d6b5c92dee2810 Mon Sep 17 00:00:00 2001 From: Nathan Painchaud Date: Thu, 19 Oct 2023 23:04:13 +0200 Subject: [PATCH] Update default config + image format for script plotting 2D embeddings of representations --- didactic/scripts/cardiac_multimodal_representation_plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/didactic/scripts/cardiac_multimodal_representation_plot.py b/didactic/scripts/cardiac_multimodal_representation_plot.py index 73e7c760..8d32f7c7 100644 --- a/didactic/scripts/cardiac_multimodal_representation_plot.py +++ b/didactic/scripts/cardiac_multimodal_representation_plot.py @@ -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( @@ -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