added feature to automatically create a legend for auto-colored PCoAs