How to Save Plotted Graph Data into Output Data File in Python
If you plotted the data using numpy array, you can use numpy.savetxt.
Using matplotlib.pyplot, I plotted multiple wave functions w.r.t time series, showing the waves in multiple vertical axes, and output the graph in jpg using savefig. I want to know the easiest way in which I can output all wave functions into a single output data file maybe in CSV or DAT in rows and columns.