density parameter is added to axes