added log scaled histogram functionality