I have an 1 dimensional array of values. I did plot a histogram of the data in python (using the hist function), and it turned out great. But now I want to plot the histogram with a log-log scale. So I thought I should bin the data myself in C++ and then plot it (the usual way) in python. But I'm a beginner in C++, so I was wondering if someone knows a simple way of explaining to me what to do.
So basicly - I have an array (size N) which I want to divide into equally spaced logarithm (base 10) bins.