plot generation for span vs cost and load vs cost.