Change parameters order to get the plot object first.