diff --git a/Report/figures/Elbow.png b/Report/figures/Elbow.png index 213645e6d6f619181e5ba2d285946ef481bac69a..bccaf706eaa6f87684d2571862067e32ec337745 100644 Binary files a/Report/figures/Elbow.png and b/Report/figures/Elbow.png differ diff --git a/Report/figures/Influence_plot.png b/Report/figures/Influence_plot.png deleted file mode 100644 index 03f8edf8afc00a7e54349750c3c1b795902c519c..0000000000000000000000000000000000000000 Binary files a/Report/figures/Influence_plot.png and /dev/null differ diff --git a/Report/figures/Spectra_Plot.png b/Report/figures/Spectra_Plot.png index b35f6dd6f5a24825054b640329f9dcb6f5747622..38d71f6619f41e4d2e60c415ffa217a67a3d8269 100644 Binary files a/Report/figures/Spectra_Plot.png and b/Report/figures/Spectra_Plot.png differ diff --git a/Report/figures/graphe_hotelling.png b/Report/figures/graphe_hotelling.png index 31311510c2f3197203aee699a837ddb5c195992b..5018f3fa6df582ee8bdb1a1237953893acfdefa4 100644 Binary files a/Report/figures/graphe_hotelling.png and b/Report/figures/graphe_hotelling.png differ diff --git a/Report/figures/graphe.png b/Report/figures/graphe_influence.png similarity index 100% rename from Report/figures/graphe.png rename to Report/figures/graphe_influence.png diff --git a/Report/figures/graphe_loadings.png b/Report/figures/graphe_loadings.png index b349077cfcd03696e8e42abdc810bac81d1aad33..8c12f8f35021dd100f494d7c3bf9f5b9fa0d7982 100644 Binary files a/Report/figures/graphe_loadings.png and b/Report/figures/graphe_loadings.png differ diff --git a/Report/figures/scores_plot_2d_axis1_axis2.png b/Report/figures/scores_plot_2d_axis1_axis2.png index 1814cded91b834b285496cfa0140e417e1d9a8a0..3107ca9465252cf925b5c00e8eafb524922fb95e 100644 Binary files a/Report/figures/scores_plot_2d_axis1_axis2.png and b/Report/figures/scores_plot_2d_axis1_axis2.png differ diff --git a/Report/figures/scores_plot_2d_axis1_axis3.png b/Report/figures/scores_plot_2d_axis1_axis3.png index 606d628e5f24e88504d90067efa6cd1335fbfea7..75c1b4681ee6d22d802cc99baa8854b0a5925372 100644 Binary files a/Report/figures/scores_plot_2d_axis1_axis3.png and b/Report/figures/scores_plot_2d_axis1_axis3.png differ diff --git a/Report/figures/scores_plot_2d_axis2_axis3.png b/Report/figures/scores_plot_2d_axis2_axis3.png index 1b9207f30458a794c2b94a28927f87ae81841199..859b3251a719aa16196b71866f5858e4e6f74db4 100644 Binary files a/Report/figures/scores_plot_2d_axis2_axis3.png and b/Report/figures/scores_plot_2d_axis2_axis3.png differ diff --git a/graphe.png b/graphe.png new file mode 100644 index 0000000000000000000000000000000000000000..3a7ad7924e3754459d2b9ab43f1515df6d201b19 Binary files /dev/null and b/graphe.png differ diff --git a/pages/1-samples_selection.py b/pages/1-samples_selection.py index 28795235affa1f3c7159c9617c492291abb96b27..4532a6dab90818d8b6916d654d27760fe47b2b04 100644 --- a/pages/1-samples_selection.py +++ b/pages/1-samples_selection.py @@ -225,12 +225,14 @@ if not spectra.empty: ax1 = st.selectbox("Component", options=dr_model.scores_.columns, index=3) leverage = dr_model.leverage_ residuals = dr_model.residuals_ - fig = px.scatter(x=leverage[ax1], y=residuals[ax1], color = leverage[ax1]*residuals[ax1]).update_layout(xaxis_title="Leverage",yaxis_title="Residuals") - st.plotly_chart(fig, use_container_width=True) + fig = px.scatter(x=leverage[ax1], y=residuals[ax1], color=leverage[ax1]*residuals[ax1], color_continuous_scale='Blues') + fig.update_layout(xaxis_title="Leverage", yaxis_title="Residuals") + st.plotly_chart(fig) img = pio.to_image(fig, format="png") - with open("./Report/figures/Influence_plot.png", "wb") as f: + with open("./Report/figures/graphe_influence.png", "wb") as f: f.write(img) + with hotelling: st.write('T²-Hotelling vs Q residuals plot') hotelling = dr_model.hotelling_ @@ -240,7 +242,7 @@ if not spectra.empty: fig = px.scatter(t, x=hotelling[ax2], y=residuals[ax2]).update_layout(xaxis_title="T²",yaxis_title="Residuals") st.plotly_chart(fig, use_container_width=True) fig.write_image("./Report/figures/graphe_hotelling.png", format="png") - + if dim_red_method == dim_red_methods[2] and clus_method == cluster_methods[2]: # UMAP clustered by HDBSCAN with loadings: # Display some clustering metrics st.write('Clustering metrics:')