Convert Matplotlib Plot Dataframe