Though the question may seem strange, sometimes it really can be useful. For example, I have to build a histogram using plt.hist
, but I am not going to plot it, only to send the heights of the bars to the front-end side for actual plotting, and since the back-end side is run on an Ubuntu Server instance, I cannot install matplotlib
via pip
. Is it possible in general? Are there any other options in my particular case?
If you just want the histogram values, then just calculate them directly using something like numpy.histogram
.