mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
embeddings: change title rendering; make even moar widererer
We need to see that parallel coordinates plot in detail
This commit is contained in:
parent
b4ddb24589
commit
d59de41ebb
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ def vis_embeddings(filepath_output, features):
|
|||
).fit(features)
|
||||
|
||||
px = 1 / plt.rcParams['figure.dpi'] # matplotlib sizes are in inches :-( :-( :-(
|
||||
width = 3840
|
||||
width = 8000
|
||||
height = 768
|
||||
|
||||
plt.rc("font", size=20)
|
||||
|
@ -24,7 +24,7 @@ def vis_embeddings(filepath_output, features):
|
|||
umap.plot.points(dimreducer,
|
||||
ax=axes["A"]
|
||||
)
|
||||
plt.title(f"UMAP Dimensionality Reduction", fontsize=20)
|
||||
axes["A"].set_title(f"UMAP Dimensionality Reduction", fontsize=20)
|
||||
|
||||
# 2: Parallel coordinates
|
||||
dataframe = pandas.DataFrame(features)
|
||||
|
@ -39,7 +39,7 @@ def vis_embeddings(filepath_output, features):
|
|||
sort_labels=True
|
||||
)
|
||||
|
||||
plt.title(f"Parallel coordinates plot", fontsize=20)
|
||||
axes["B"].set_title(f"Parallel coordinates plot", fontsize=20)
|
||||
|
||||
plt.suptitle(f"RainfallContrastive embeddings | rainfall | E2 ConvNeXt | {len(features)} items", fontsize=28, weight="bold")
|
||||
plt.savefig(filepath_output)
|
Loading…
Reference in a new issue