import matplotlib.pyplot as plt
import numpy as np
from fears.utils import results_manager, plotter, dir_manager
import os

suffix = '07212021_0001'
data_folder = 'results_' + suffix
exp_info_file = 'experiment_info_' + suffix + '.p'

exp_folders,exp_info = results_manager.get_experiment_results(data_folder,
                                                             exp_info_file)
max_cells = exp_info.populations[0].max_cells
n_sims = exp_info.n_sims
k_abs = exp_info.slopes

exp_folders.reverse()
k_abs = np.flip(k_abs)

fig,ax = plt.subplots(nrows=2,ncols=2,figsize=(4,4))

pop = exp_info.populations[0]

ax = ax.reshape((len(k_abs),))

axnum = 0
tc_axes=[]
drug_axes=[]

for exp in exp_folders:
    k_abs_t = exp[exp.find('=')+1:]
    k_abs_t = float(k_abs_t)
    num = 
np.argwhere(k_abs == k_abs_t)