Module for making plots with points coloured by local density