R Join Two Dataframes Python Compiler With Matplotlib Legend