newDensity updates the plot in DensityModel