Add clip=True when writing smooth densities