Generalise membershipPlot()