The tool WebPlotDigitizer is the right instrument for that exact purpose.
Using this tool you can upload an image of the plot you would like to get the data of, and export them in a CSV format or just copy/paste to your favourite plotting software/program.
You can check out my other post on how to create professional-looking plots for conferences and journals using Python.