adds a plot for cost model