'How to save modified graph data to a data file

I imported data into python and create a matplotlib figure which has interactive points on the graphs that I can move around.

I am trying to then save the new data points that have been moved into the original data file that was imported.

Is there a function that you can use in python to save the new data points into a file and export the data, rather than just saving the matplotlib figure as a jpeg?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source