added legend option to densitypot