結果 : how to plot cost function in python