Code to create density heat maps.