Density plot working