print txt corresponding to sub density plot