# Plot the Objective over the course of the solve

using TrajOptSOCPs, Plots


function plotObjective(obj::objectiveFunc, trajList)
    fList = [TrajOptSOCPs.fObjQP(obj, traj)[1] for traj in trajList]

    pltObj = plot(fList, markershape = :square)
    title!("Cost Function")
    ylabel!("Cost Function")
    xlabel!("Newton Step")

    return pltObj
end
