UPDATE - Solving problem with sgd figure