Currently I am plotting a histogram using matplotlib.pyplot to plot my data in a histogram. But now I want to save this data in a textfile. Here I want the first column to be the x value and the second to be the y value. How can I do this?
I plot my histogram in the following order:
import matplotlib.pyplot as plt
some_list = [0.42146137, 0.42146137, etc...]
plt.hist(some_list, bins = 900, histtype="step", cumulative=-1)
plt.yscale("log")