simplified histogram plotting.