Skip to content

Commit

Permalink
analyse different things
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo1990 committed Nov 7, 2024
1 parent 01a6152 commit 2f622aa
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Empty file.
52 changes: 52 additions & 0 deletions src/pyVertexModel/analysis/analyse_results_excel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.interpolate import griddata

# Read excel into a pandas dataframe
results_excel = pd.read_excel('data/simulations_results/all_files_features.xlsx')

columns = ['visc', 'lt', 'ltExt', 'lS1', 'lS2', 'lS3', 'refA0', 'kSubs', 'lVol', 'eARBarrier']
y_variables = ['recoiling_speed_apical', 'K']

for y_variable in y_variables:
for column in columns:
# Plot in different ways the data
g = sns.lmplot(
data=results_excel,
x=column,
y=y_variable,
)

# Plot a graph with two values


# Use more informative axis labels than are provided by default
g.set_axis_labels(column, y_variable)

# Save the plot
plt.savefig(f'data/simulations_results/0_scatter_plot_{column}_{y_variable}.png')
plt.close('all')

# load plot


# for column2 in columns:
# if column == column2:
# continue
#
# fig = plt.figure(facecolor='w')
# X = results_excel[column].values
# Y = results_excel[column2].values
# Z = results_excel[y_variable].values
#
# # Scatter plot with hue as the third dimension color
# g = sns.scatterplot(
# x=X,
# y=Y,
# hue=Z,
# palette='RdBu_r',
# )
# plt.savefig(f'data/simulations_results/1_scatter_plot_{column}_{column2}_{y_variable}.png')
# plt.close('all')

0 comments on commit 2f622aa

Please sign in to comment.