diff --git a/graphics.py b/graphics.py
index 6408ec71910c0aced73106eb73af13f19da218f7..b5e4ee19977d12fbba8992f01ba92c9fe8dc4598 100644
--- a/graphics.py
+++ b/graphics.py
@@ -743,14 +743,14 @@ def plot_overview(exp,label,filename,show_spread=False,show_transformed_paramete
     fig.savefig(filename,format='png',dpi=300)
     p.close(fig)
 
-def plot_profiles(exp,settings,filename):
+def plot_profiles(exp,filename):
 
     # Make plots
     fig, [ax1, ax2] = p.subplots(1,2,constrained_layout=True)
     fig.set_size_inches(6,3)
 
     which_cycle = 0
-    tt1 = (which_cycle+1)*settings['assimilation_interval']
+    tt1 = (which_cycle+1)*exp.da.assimilation_interval
     ax1 = plot_CBL_assimilation(exp,None,which_cycle=which_cycle,ax=ax1)
     ax1.set_ylim([0,2000])
     ax1.set_xlim([288,298])
@@ -759,7 +759,7 @@ def plot_profiles(exp,settings,filename):
     ax1.legend(frameon=False)
 
     which_cycle = 31
-    tt2 = (which_cycle+1)*settings['assimilation_interval']
+    tt2 = (which_cycle+1)*exp.da.assimilation_interval
     ax2 = plot_CBL_assimilation(exp,None,which_cycle=which_cycle,ax=ax2)
     ax2.set_ylim([0,2000])
     ax2.set_xlim([288,298])