Transforming histogram