Added function to produce histogram in logspace