plotting density of retrieved data