histogram to density curve